fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Some products have problem

Hi, I have a problem with some products not being added to the cart and my developer says there is some conflict with your plugin
The problem is here https://wordpress-1330650-4869503.cloudwaysapps.com/product/topaze-autumn-ring/ and there are a couple more products with a similar problem. https://wordpress-1330650-4869503.cloudwaysapps.com/product/smiley-ring/ https://wordpress-1330650-4869503.cloudwaysapps.com/product/smiley-bracelet/
Can you help please? thanks

Golam Kibria

Hi Tetiana,

You seem to be experiencing the issue due to a conflict of multiple jQuery versions.

When Stock Locations for WooCommerce plugin is active it generates a console error.
(Please check this screencast).

On your site, additional jQuery is being added – https://paste.pics/SBEDL

WordPress Core already offers jQuery by default so, you don’t need to enqueue it again from a CDN.

Here is a default list of JS libraries that WP offers:
https://developer.wordpress.org/reference/functions/wp_enqueue_script/#default-scripts-and-js-libraries-included-and-registered-by-wordpress

You can enqueue the built-in jQuery library like this:
wp_enqueue_script( 'jquery' );

Rather than:
wp_register_script( 'jquery', 'https://code.jquery.com/jquery-3.4.1.js');

Our plugin uses WordPress’s built-in jQuery library. Please remove the additional CDN for jQuery.

This should resolve the issue.

Thanks a lot