Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Postcode location


Warbirdz

Recommended Posts

Posted

Hi there,

 

I'm trying to change the location of the postcode when creating a new user account. Currently it is above the city and I want it below. I found create_account.php and changed the location in there but it did not make any difference to the page.

 

Can anyone suggest where I need to do that?

 

Thanks in advance ...

 

 

 

Bron :-"

Posted

find the bit (around line 386) in catalog/create_account.php that starts:

 

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" cellspacing="2" cellpadding="2">
		  <tr>
			<td class="main"><?php echo ENTRY_STREET_ADDRESS; ?></td>
			<td class="main"><?php echo tep_draw_input_field('street_address') . '?' . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?></td>
		  </tr>
<?php
 if (ACCOUNT_SUBURB == 'true') {
?>
		  <tr>
			<td class="main"><?php echo ENTRY_SUBURB; ?></td>
			<td class="main"><?php echo tep_draw_input_field('suburb') . '?' . (tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?></td>
		  </tr>
<?php
 }
?>
		  <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>

and shuffle it accordingly

one-click installation..

Dave's info

Posted

OK, question 2 (probably of many), can you please point out where in address_book_process.php I need to change it? I am having a little difficulty spotting that.

 

Thanks

 

 

Bron

  • 5 months later...
Posted

Anyone find a fix to address_book_process. I have made changes to my create_account (which works perfectly) but I still am not happy with the order of the update address book entry page. Has anyone found a work-around for this problem? I would like it to display city THEN postcode.

 

seef

Archived

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

×
×
  • Create New...