• Resolved kylewhenderson

    (@kylewhenderson)


    Conditions:

    • Windows Chrome (doesn’t seem to affect Mac Chrome)
    • Customizer > WooCommerce > Checkout > Persistent Checkout Form Data is enabled

    1st checkout works fine, 2nd checkout from same user throws JS error which also prevents Stripe’s CC field from displaying properly, therefore making checkout impossible.

    As a workaround I have disabled Persistent Checkout Form Data in WooCommerce. Took about an hour to track down the issue, so thought I would pass it along. Thanks!

    Uncaught Error: Syntax error, unrecognized expression: form.woocommerce-checkout [name=gazchap_purchase_order[number]]
        at Function.ea.error (jquery.js?ver=1.12.4-wp:2)
        at ea.tokenize (jquery.js?ver=1.12.4-wp:2)
        at ea.select (jquery.js?ver=1.12.4-wp:2)
        at Function.ea (jquery.js?ver=1.12.4-wp:2)
        at Function.a.find (jquery-migrate.min.js?ver=1.4.1:2)
        at n.fn.init.find (jquery.js?ver=1.12.4-wp:2)
        at n.fn.init.a.fn.find (jquery-migrate.min.js?ver=1.4.1:2)
        at a.fn.init.n.fn.init (jquery.js?ver=1.12.4-wp:2)
        at new a.fn.init (jquery-migrate.min.js?ver=1.4.1:2)
        at n (jquery.js?ver=1.12.4-wp:2)
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gazchap

    (@gazchap)

    Thanks for the report, Kyle – I’ll take a look and advise here when I know more.

    Plugin Author gazchap

    (@gazchap)

    Thanks for your further help with this Kyle, this should now be resolved and an update posted to the repository.

    For the benefit of others, this was an issue with the “Persistent Checkout Data” option in the Astra Pro theme, seemingly not escaping input names properly when reading them with jQuery.

    Normally I wouldn’t amend my code to fix something that is really an error in something else, but it’s a relatively minor change my side and should improve compatibility with any other theme/plugin that does the same thing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflict with Persistent Checkout Form Data’ is closed to new replies.