Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reorder Address Fields


MaxxPayne

Recommended Posts

Posted

While creating an account, the default order of address fields is:

Street

Post Code

City

State

Country

 

I would like to move the Postal Code field to come after the State field. This is a more 'natural' entry order.

 

Is there a way to do this?

 

Thanks.

 

PS: How do you edit the checkout_shipping_address.php and checkout_payment_address so that it also appears in this order as well?

any where that the order shows up is what I am wanting to achieve.. ANY helkp would be greatlt appraeciated....

Posted
While creating an account, the default order of address fields is:

Street

Post Code

City

State

Country

 

I would like to move the Postal Code field to come after the State field. This is a more 'natural' entry order.

 

Is there a way to do this?

 

Thanks.

 

PS: How do you edit the checkout_shipping_address.php and checkout_payment_address so that it also appears in this order as well?

any where that the order shows up is what I am wanting to achieve.. ANY helkp would be greatlt appraeciated....

create_account.php

find

			  <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>

 

change to

			  <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>
		  <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>

 

the others you asked for em not sure how to do that

Posted

You will need to edit:

 

\catalog\includes\modules\address_book_details.php

and

\catalog\includes\modules\checkout_new_address.php

 

basically all address field come in 'blocks' between <tr> and </tr> tags. To move them just copy a whole 'block' same way as steve did above.

 

Cheers,

Adam.

Archived

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

×
×
  • Create New...