Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

address input order


kevinmiami

Recommended Posts

Posted

I can't figure out for the life of me how to alter the order of customer address info.

right now it asks for it in this order, which isnt standard:

address

postal code

city

state

country

 

i want it to be:

address

city

state

postal code

country

 

PLEASE HELP!!

thanks so much

Posted

In catalog/create_account.php find these lines (at about 403):

 

<tr>

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

<td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>

</tr>

<tr>

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

<td class="main"><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td>

</tr>

 

Cut the lines in red and paste them after the lines in blue (at about line 437):

 

if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;

?>

</td>

</tr>

<tr>

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

<td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>

</tr>

 

You are just moving that table row further down the page (later in the table).

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

Thanks, that worked great... BUT

now on the delivery information page, and on the invoice the postal code is still in the middle of the address, not after the state...

how do i change that?

 

thanks soooo much :)

Archived

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

×
×
  • Create New...