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

vm’s picture

first 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.

iancawthorne’s picture

I 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.

davea’s picture

Version: 5.x-3.4 » 5.x-3.5

This 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

iancawthorne’s picture

Hi 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.

davea’s picture

For 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

iancawthorne’s picture

The 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?

davea’s picture

How are you calculating shipping?

DaveA

iancawthorne’s picture

I'm using Flexicharge. I have just tried disbaling this, but it has no effect on the US States problem.

iancawthorne’s picture

Just wondering if anyone else has come across this problem as I still have not found a fix.

ycwjjjj’s picture

Version: 5.x-3.5 » 5.x-3.6

Yes, I got the same problem too. US state list can only be shown if the default store location is set to US.

ycwjjjj’s picture

Just find the fix - #242703: Typo in address.module for build_states option. It works for me.