Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Auto State Dropdowns Doesn't Work To All States


Recommended Posts

Dear all,


I have successfully change my sign-up form into drop-down state instead of text box using this contribution :




But, unfortunately the states where my store is located has 869 different states. then the problem comes

from a customer who want to register using zone_id no. 822 on zones table. She got this error message :


"Please select a state from the States pull down menu."


I thought that OSCommerce unable to load/select states which its zone_id is more than 600 or something.

but I was wrong. I decided to sign-up for a new account and choose a state which has zone_id 806 and then

add more address on my address book using zone_id 651. all works pretty well...


So, this error is looks like came out for certain states... and I've checked my CSV file, there's nothing difference

between state which cause an error and doesn't.


here's some part of my CSV file :


1,100,Banda Aceh,Banda Aceh >> NO ERROR

499,100,Jambi,Jambi >> ERROR

651,100,Surabaya,Surabaya >> NO ERROR

806,100,Jakarta Barat,Jakarta Barat >> NO ERROR

822,100,Bandung,Bandung >> ERROR

846,100,Tasikmalaya,Tasikmalaya >> ERROR

869,100,Other Kab. Sumedang,Other Kab. Sumedang >> NO ERROR


I still can't figure it out what cause this problem. any ideas? why this error appear randomly? thanks...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...