Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change the address order


gnarly parts

Recommended Posts

Posted

When someone wants to set up an account, the site ask for there address, city and zip code in a strange order. Can this be change? Also, I only sell to the USA so is there a way I can stop the country drop down and just state USA as the only country.

 

Thanks

 

Dave

Always looking for a way to improve my sites.

Posted

Countries and states are dealt with in admin. You can add/remove them there.

 

--Peter

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Posted

I realize the countries and states are dealt with in the admin but when since I only need one country I want to lose the drop down menu. Right now someone will have to drop down the country and only the USA appears. I would perfer to just have USA already there with no drop down.

 

My real concern is the order that it ask for your address. I want to make it:

 

Name

Address 1

Address 2

City

State

Zip

Country

Phone

 

Right now it says:

 

Name

Address

Suburb

Post Code

City

State

Country

Phone

 

Thanks for any help

 

Dave

Always looking for a way to improve my sites.

Posted

Thanks, I think this will work for the country, but how do you move the order of the postal code below the state?

Always looking for a way to improve my sites.

Posted

for that you change the actual html in the php files like in create_account.php you move the zipcode entry below.

 

So you have in that file like

 

 

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

So you get the post code html row and you move it below the state (or just above the country). The country setting is few lines below:

 

			  <tr>
			<td class="main"><?php echo ENTRY_COUNTRY; ?></td>
			<td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
		  </tr>

 

So the result is

 

			  <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_COUNTRY; ?></td>
			<td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
		  </tr>

Archived

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

×
×
  • Create New...