• Resolved mastiyok

    (@mastiyok)


    Hi Kadence Team,
    I’m using WordPress 4.7.4 and Woocommerce 3.0.4

    I enqueued CDN jquery library on my virtue child theme to add some functionality to my website. With the CDN jquery enqueue script on, I wasn’t be able to update cart quantity in the cart page. But when I turned the CDN jquery enqueue script off, the update cart button worked again.

    I had tested this issue on twenty-seventeen theme with same method as mentioned above. And the twenty-seventeen “update cart” button just worked nicely: with or without the CDN jquery.

    Are there some conflicts when we tried to enqueue CDN jquery on virtue theme? If there is a conflict, how can we fix this issue?

    FYI : I had enqueued jquery to Virtue Child theme from CDN library such as:
    > https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
    > https://code.jquery.com/jquery-3.2.1.min.js
    > https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js

    Hope to hear from you soon,
    Cheers
    Satriyo

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you post a link to your site so I can see this? My only guess would be your enqueuing the script later than it should be.

    Thread Starter mastiyok

    (@mastiyok)

    I think you won’t need to see my website because your guess is right.
    adding priority 0 to wp_enqueue_scripts made the update cart button works again!

    thank you for your helpful advice!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘“update cart” button not working after enqueue CDN jquery’ is closed to new replies.