Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

State & Country Selection


Guest

Recommended Posts

Posted

Ok...really stupid question here. Is it possible to do some re-arranging with the customer sign up module so that they enter first their city, then their state is from a drop down box, then they enter their zip code and default to a particular country....ie: United States?

 

Thanks all......

 

Todd

Posted
yes :D :D

I really think it would be too hard to start at the city first. How would you get on with a city such as Springfield?

Posted
I really think it would be too hard to start at the city first. How would you get on with a city such as Springfield?

To continue after my PC crash when editing the post.

 

You have a city only within the US, and you you have a city that has the same name as other cities in other countries. How would you handle this?

Posted
To continue after my PC crash when editing the post.

 

You have a city only within the US, and you you have a city that has the same name as other cities in other countries. How would you handle this?

 

I should clarify this a bit I think. The default install of OSC follows this path for a new customer regisration on the screen:

 

First Name

Last Name

eMail Address

Street Address

Postal Code

City

State/Providence

Country

 

What I am wondering is if the city and state and be placed before the Postal Code and if the State can be presented in a drop down box. If a customer is in, say Montana, then this field would ideally contain MT, whereas a customer may enter "Montana" instead of simply "MT". Does that make any clearer sense? :)

 

Thanks everyone.

Posted

Stock oscommerce create_account.php find line 403-406. Select that block of code and cut/paste.

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

 

Move/paste that block of code AFTER line 436

 

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

?>

</td>

</tr> <--Line 436

 

 

For your dropdown state, click >>here

Archived

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

×
×
  • Create New...