• Before I upgraded to WooCommerce 3, Stripe Checkout was working OK.
    I upgraded to WooCommerce 3.0.1 on the dev site and I am now getting these error with Stripe Checkout. I have no idea how to home in on the solution. I am using the Canvas theme from WooCommerce.

    1.
    On the page I am getting this:
    “Warning
    Please enter your card details to make a payment. Developers: Please make sure that you are including jQuery and there are no JavaScript errors on the page.”

    2.
    I am getting the same message in the debug log:
    04-09-2017 @ 18:35:15 – Error: Please enter your card details to make a payment. Developers: Please make sure that you are including jQuery and there are no JavaScript errors on the page.

    3.
    In Chrome browser View / developer / Javascript console, I am getting this:

    cart-fragments.min.js:1 Uncaught TypeError: a.cookie is not a function
    at HTMLDocument.<anonymous> (cart-fragments.min.js:1)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.K (jquery.js:2)
    (anonymous) @ cart-fragments.min.js:1
    i @ jquery.js:2
    fireWith @ jquery.js:2
    ready @ jquery.js:2
    K @ jquery.js:2

Viewing 5 replies - 1 through 5 (of 5 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi David!

    It’s possibly your theme (not being compatible with 3.0+)

    You can temporarily switch to a default WordPress theme, such as Storefront, to see if the problem still exists. If the problem goes away, you’ll have to contact your theme authors for an update.

    See: https://docs.woocommerce.com/document/stripe/#section-28

    Cheers!

    Thread Starter David Bennett

    (@bennettskaya)

    Thanks – I had already read the page you referred to. The thing is though that I am using Canvas – a theme made by WooCommerce. So if the theme is the problem, then it’s a bigger problem that my issue.

    Thread Starter David Bennett

    (@bennettskaya)

    More Info:
    I set DEBUG to true and got the following.

    Notice: get_product is deprecated since version 3.0! Use wc_get_product instead. in …/wp-includes/functions.php on line 3829

    Notice: product_type was called incorrectly. Product properties should not be accessed directly. Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in …/wp-includes/functions.php on line 4137

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Hi David, those deprecation warnings can be ignored if hidden in production. Extension developers just need to update their code.

    The cart-fragments.min.js issue is the one you need to fix. It has a js-cookie dependency which may be missing. Look on your page for assets/js/js-cookie/js.cookie.min.js

    If you have minify or caching plugins, ensure they are flushed.

    Thread Starter David Bennett

    (@bennettskaya)

    Hi Mike,
    Flushing the Autoptimise plugin did it.

    Thank you.

    Happy again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘JQuery / javascript errors / 3.0.1’ is closed to new replies.