I have version 1.14.3 of FEC installed on a 1.5.1 store. I noticed that when creating an account or doing guest checkout, if the billing state field is left blank or unselected, an error message displays. If the shipping state field is left blank or unselected, no error message displays. We do need customers to fill in the shipping state if they've selected to use a different shipping address.
I looked at a 1.3.9h site using an older version of FEC, and it has the exact same issue.
Has anyone else experienced this, and were you able to fix it?
In includes/templates/YOUR_TEMPLATE/jscript/jquery/jquery_form_check.php, there is this line of code:
PHP Code:
<?php if (ACCOUNT_STATE == 'true') echo ' if (!jQuery(\'[name="state_shipping"]\').attr("disabled") == "disabled" && jQuery(\'[name="zone_id_shipping"]\').val() == "") check_input("state_shipping", ' . ENTRY_STATE_MIN_LENGTH . ', "' . addslashes(ENTRY_STATE_ERROR) . '")' . "\n" . ' else if (jQuery(\'[name="state_shipping"]\').attr("disabled") == "disabled") check_select("zone_id_shipping", "", "' . addslashes(ENTRY_STATE_ERROR_SELECT) . '");' . "\n"; ?>
That seems like it should make the error appear if the shipping state is not selected, but it does not work. I am not familiar enough with js to know what is wrong with the code.
Bookmarks