Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving Zip/Postal Code in Address Book editing


vptuning

Recommended Posts

When I go to "My Account", then to "View/change entries in my address book.", and then "Edit" under "Address Book Entries", I would like the "Zip Code" field to appear AFTER the "State/Province" field.

 

I was able to follow the directions in the WIKI document to make this chance when someone signs up for a new account, but it is slightly different in address_book_process.php.

 

Can anyone show me how to make this change?

Link to comment
Share on other sites

UPDATE:

 

I HAD to find this out on my own, so I figured it out!

 

The file you need to update is /catalog/includes/modules/address_book_details.php

 

I simply moved the following code to after the State code.

 

          <tr>

           <td class="main"><?php echo ENTRY_POST_CODE; ?></td>

           <td class="main"><?php echo tep_draw_input_field('postcode', $entry['entry_postcode']) . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>

         </tr>

Link to comment
Share on other sites

Hi,

 

If you look at the php code in catalog/address_book_process.php you will see about line 336 this:

<td><?php include(DIR_WS_MODULES . 'address_book_details.php'); ?></td>

 

 

So, to change this file you have to open up catalog/includes/address_book_details.php and move the zip below the state.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...