Postal code not valid error in Chrome
-
Hi,
I have customers reporting that they are getting a ‘Postal code not valid error’ validation error when submitting their details on the checkout.
I notice there is a second Postal code field under the card details fields (which has a .hidden class but no CSS to actually hide it in v2.1.0 of the plugin), which automatically pulls in the value from the standard Billing Postcode box in the address fields.
After testing in a few browsers, Firefox automatically triggers updates the value in the Postal code upon a change to the Billing Postcode (and plays the fade out/spinny wheel animation over the payment form), however Chrome does not on desktop or mobile (also Brave browser which uses the same rendering engine).
Chrome does however trigger the update if you click the ‘Deliver to a different address’ checkbox or if you trigger an autocomplete on any of the form fields.
Filling the form in regularly in Chrome doesn’t trigger the Postal Code value to update so the hidden field is left empty.
So submitting the form is causing the ‘Postal code not valid’ due to the empty hidden field but customers will generally be checking the standard Billing Postcode field for errors (which will be fine) and abandoning the checkout.
Please could this be addressed in the next version of the plugin and a temporary fix provided to patch the current version.
Ideally, this second Postal code box needs hiding to avoid any confusion and updating in the background upon any change to the Billing Postcode field.
Thanks,
Paul
The page I need help with: [log in to see the link]
- The topic ‘Postal code not valid error in Chrome’ is closed to new replies.