If your store is in Canada and USA customer tries to add their address in their address book, they will NOT see any states in the states select box.
The reason for this is because...
function address_form_fields($edit = array()) {
....
$country = ($edit['country'] ? $edit['country'] : variable_get('ec_country', 0));
// @return == 'ca' (because the store's default is Canada
$states = store_build_states($country);
// @return == empty array.
only way I could explain this :)
I'm going to hack the module to solve it for now so this client's site works but will be hoping for a patch soon :)
Comments
Comment #1
Anonymous (not verified) commentedin case others encounter this... for my hackish fix i just did this..
Comment #2
eclypsed commentedThanks Steve,
That really did the trick! Hopefully this bug is fixed soon.
Comment #3
drew reece commentedThis appears to be related to this issue…
http://drupal.org/node/242703
Comment #4
buddaThis fix worked. Pitty it can't just be rolled in to the 3.x branch and packaged as a new release as it's annoying.
Comment #5
pfaocleMarking this as a duplicate of Typo in address.module for build_states option, which to me seems to be the proper fix.
Comment #6
carole commentedI tried both fixes, and they both work for the US but not Canada. My default location is Canada. I have EC Regions and the Locations module enabled. Do I have to enable or configure a list of provinces somewhere?
Comment #7
iancawthorne commentedSubscribed