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

Javascript error with 4 or more product variations

Hi there,

I am currently trialing your free plugin of Variation Swatches For Woocommerce with the intention of upgrading to the premium one once our testing has been successful for our client.

I’ve encountered an error with the plugin with this in the console:
‘add-to-cart-variation.min.js?ver=9.0.2:1 Uncaught TypeError: e.$form.block is not a function’

I’ve disabled the plugin and tested it with default Woocommerce which works fine.

The products for our client will be minimal 4 variations but even if there are 2 variations this console error still appears.

Would you mind explaining why this is occurring?

I am currently just working locally.

Many thanks,
Jonathan.

Hakik Zaman

Hi Jonathan,

Thanks for reaching out to us. Please follow the steps to resolve the issue.

=> Please make sure you are using the latest WooCommerce 9.0.2.

=> Also, make sure you haven’t added additional jQuery CDN on your site. jQuery is a built-in library of WordPress Core, so, you don’t have to enqueue it- https://developer.wordpress.org/reference/functions/wp_enqueue_script/#default-scripts-and-js-libraries-included-and-registered-by-wordpress

=> You can disable all the additional plugins except WooCommerce and Variation Swatches. Then activate additional plugins one by one to identify the conflicting plugins.

Hope to hear from you soon.

Thank You