PDA

View Full Version : Country-State Selector contribution


stevel
4-21-04, 07:01 PM
I just wrote my first osCommerce contribution: Country-State Selector. It addresses one of the most common gripes I have seen regarding osCommerce.

The Country-State Selector contribution provides the following enhancements to the Create Account and Address Book features of osCommerce:

- When the customer first views the Create Account or Add Address Book Entry form, a default country is pre-selected
- If the default country has zones (states, provinces, etc.), a drop-down list for the zones is automatically displayed; if no zones are in the database, a normal text input field is shown instead
- If the customer changes the country, the form refreshes and the state field is updated according to the new country; any entries in other fields are preserved

http://www.oscommerce.com/community/contributions,2028

natural
4-22-04, 09:47 AM
Congratulations Steve!
This is a very nice contribution, I wish it was around when I needed it. I made some changes myself, since I can sell to only the US, so I deleted all other countries in the database, and put US as the deault country, plus I changed the code to always have a drop-down box, since I had many customers with the state Alabama when they weren't from there.

Once again, this is a very nice contribution. :)