Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,119
- Plugin Contributions:
- 56
[Done v1.3.9] Drop-down states only show selected state for default country
Running 1.38a+FEC+security.
If a customer creates an address-book entry for a country OTHER THAN the store's default country and then goes to update that entry, the drop-down for State/Province shows "Please select" instead of the previously-stored selection.
The selection is in the database (checked via phpMyAdmin). The problem appears to surface within \includes\modules\pages\address_book_process\header_php.php at line 304:
$selected_country = (isset($_POST['zone_country_id']) && $_POST['zone_country_id'] != '') ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
This statement, on entry from a 'edit' request, always goes down the 'false' path because at that point, nothing from the form has been posted.
I'm not sure what the 'proper' fix is ... please help.