Support » Plugin: WooCommerce Square » Postal code not valid error in Chrome

  • Resolved dinodesigns87

    (@dinodesigns87)


    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    This is likely caused by a conflict with your theme or with another plugin.

    The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront (https://woocommerce.com/storefront/?aff=10486&cid=1131038) and disable all plugins except for WooCommerceand Square (I personally recommend using Health Check below). Finally, test to see if the issue is resolved by checking out using Chrome.

    To figure out which plugin is causing the problem, continue to the next step – reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    Here’s a more extensive explanation in our docs: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    —–

    Tools to help you troubleshoot:

    and switch themes for that session without impacting your users. Link: https://wordpress.org/plugins/health-check/

    You can clone your site to a staging environment and perform tests without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin. Link: https://wordpress.org/plugins/wp-staging/

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Postal code not valid error in Chrome’ is closed to new replies.