The basic osCommerce package has a few flaws in it. One of these is the Create Account section. When a visitor tries to create an account, he will get an error on the State field if it is not entered correctly. Most people will use the abbreviation for their State and this will cause a failure. When the page is refreshed so that he can enter his data again, the State field will change to a drop-down list of the States/Provinces. This can be very frustrating to a new customer and is not the best way to have them start off their expereince with you. This contribution will change the way that section functions so that that problem no longer exists. Here is what it does:
- 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
It may not seem like much but installing this contribution can make your customers experience with your shop a less stressful one and that should be the number one priority of any shop owner.
Also see the Active Countries contribution.