Active
Project:
e-Commerce
Version:
5.x-3.6
Component:
address
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2008 at 21:04 UTC
Updated:
23 Feb 2010 at 09:38 UTC
When I try to add an address for the United States I cannot complete the form as the State drop down has nothing in it. Any other Country is ok as the drop down changes to a textfield.
There must be a way to change this in the configuration, but I can't find it anywhere!
Comments
Comment #1
vm commentedfirst thing I'd suggest is updating to 3.5 and insuring that what you've found isn't a bug that has already been fixed in the latest release.
Comment #2
iancawthorne commentedI have patched to 3.x.3.5 and the same is still happening.
This is the site http://www.heritagemeats.co.uk/heritagemeats/
When adding an address to the address book and choosing United States results in the drop down being empty.
Comment #3
davea commentedThis appears to be a problem with jquery. Your site appears to be running the original jquery that is with Drupal 5. This version of jquery is very old.
I would suggest this:
Install the jquery update module and read the install.txt with the module, then try again.
http://drupal.org/project/jquery_update
This will update the jquery that comes with your site.
DaveA
Comment #4
iancawthorne commentedHi Davea,
Thanks for this post, it seems to have progressed a bit.
I have installed Jquery Udpdate.
When I choose United States as the Country, I now get the option of "Please choose" in the State drop down, but there is still nothing to choose from.
In Ubercart, you have to load a Country list to for states / counties. Do I need to something similar here?
My store is also set to United Kingdom. Although I would hope that I can allow orders from any country.
Comment #5
davea commentedFor some reason, your states select is NOT being populated- which of course, doesn't make sense. The state list is NOT stored in a table- it is included in ecommerce/store/store_location.inc. Verify the contents of that file.
You also could re-download the same version OR the latest dev version.
Thanks,
DaveA
Comment #6
iancawthorne commentedThe states certainly all seem to be listed in the store_location.inc file. I've also pacthed to 3.5 from 3.4 and the problem is still there. I found that if I set my store location to United States, the states then list ok, but I need it to be set to UK by default. Does that make this a bug?
Comment #7
davea commentedHow are you calculating shipping?
DaveA
Comment #8
iancawthorne commentedI'm using Flexicharge. I have just tried disbaling this, but it has no effect on the US States problem.
Comment #9
iancawthorne commentedJust wondering if anyone else has come across this problem as I still have not found a fix.
Comment #10
ycwjjjj commentedYes, I got the same problem too. US state list can only be shown if the default store location is set to US.
Comment #11
ycwjjjj commentedJust find the fix - #242703: Typo in address.module for build_states option. It works for me.