Contributions

Features (Category Index)
Search: 

State list dropdown and US default country

This changes the default behavior of the customer signup form to show the states as a drop-down list and sets the default country to the United States. The country dropdown is configurable by using the ID code from the "countries" table in the db.

This was posted in a forum by bluepony, and I found it so valuable that I decided to post it as a contribution. All credit goes to him!

Here's the relevant post:
http://forums.oscommerce.com/index.php?showtopic=94671&view=findpost&p=375353

Expand All / Collapse All

Avoid Problems - Here's a Better Contribution 20 Jul 2007

The problem with this contribution is that the drop down list is the entire zone file so that it includes more than the states for the selected country and if you don't have the entire world zone file from http://www.oscommerce.com/community/contributions,1792 then your customers from zones not in your list are forced to choose an incorrect zone (state). I was in the middle of struggling to correct this when I stumbled on a contribution that already solved it and is much better in all respects. Here it is:
http://www.oscommerce.com/community/contributions,2028
http://forums.oscommerce.com/index.php?showtopic=88987

The attached file is a copy of this message only.

Auto Select State Value 26 Mar 2006
Minor Instructions Edit 6 Sep 2005
Select State/Province from Dropdown Menu & Set Country to Store Default Tim Elam 22 Jun 2005
Error inserting states Jeff Skuse 24 May 2005
Addon to Mary's idea tommy11011 14 Apr 2005
Dropdown - Please Select - State - Province Richard Francoeur 13 Sep 2004
State Dropdown Fix Mary Boonenberg 22 Aug 2004
Country and State Dropdown Kevin Lincicome 5 Jun 2004
State list dropdown and US default country David Mauch 3 Jun 2004
State list dropdown and US default country David Mauch 3 Jun 2004

Note: Contributions are used at own risk.