Woocommerce / Polylang Causes Add to Basket button to be disabled

i’ve been experiencing this error so far:
the Add to Basket button is disabled for variable products on the English version of my wordpress website, when instead everything works on the Italian version. Altho a couple of errors from the debug I found out that the mistake is related to the below code got from Google Chrome which i have no clue how to fix or avoid..any help or hints would be really appreciated..

Uncaught TypeError: Cannot read property 'length' of null
    at e.isMatch (add-to-cart-variation.min.js?ver=2.6.12:1)
    at e.findMatchingVariations (add-to-cart-variation.min.js?ver=2.6.12:1)
    at HTMLSelectElement.<anonymous> (add-to-cart-variation.min.js?ver=2.6.12:1)
    at Function.each (jquery.js?ver=1.12.4:2)
    at a.fn.init.each (jquery.js?ver=1.12.4:2)
    at HTMLFormElement.e.onUpdateAttributes (add-to-cart-variation.min.js?ver=2.6.12:1)
    at HTMLFormElement.dispatch (jquery.js?ver=1.12.4:3)
    at HTMLFormElement.r.handle (jquery.js?ver=1.12.4:3)
    at Object.trigger (jquery.js?ver=1.12.4:3)
    at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
e.isMatch @ add-to-cart-variation.min.js?ver=2.6.12:1
e.findMatchingVariations @ add-to-cart-variation.min.js?ver=2.6.12:1
(anonymous) @ add-to-cart-variation.min.js?ver=2.6.12:1
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
e.onUpdateAttributes @ add-to-cart-variation.min.js?ver=2.6.12:1
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3
trigger @ jquery.js?ver=1.12.4:3
a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
(anonymous) @ jquery.js?ver=1.12.4:3
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
trigger @ jquery.js?ver=1.12.4:3
e.onFindVariation @ add-to-cart-variation.min.js?ver=2.6.12:1
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3
trigger @ jquery.js?ver=1.12.4:3
a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
(anonymous) @ jquery.js?ver=1.12.4:3
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
trigger @ jquery.js?ver=1.12.4:3
e.onChange @ add-to-cart-variation.min.js?ver=2.6.12:1
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3

Read more here: Woocommerce / Polylang Causes Add to Basket button to be disabled

1 thought on “Woocommerce / Polylang Causes Add to Basket button to be disabled

  1. I got same error in my localhost.i found a solution but with that whole functionality gonna change so Can you share your solution may be it will helpful.

Leave a Reply

Your email address will not be published. Required fields are marked *