Woocommerce / Polylang导致添加到购物篮按钮被禁用

时间:2017-01-17 11:36:29

标签: wordpress polylang

到目前为止,我一直在遇到此错误: 对于我的wordpress网站的英文版本上的变量产品,禁用“添加到购物篮”按钮,相反,所有内容都适用于意大利语版本。虽然从调试中发现了一些错误我发现这个错误与以下从谷歌Chrome获得的代码有关,我不知道如何修复或避免..任何帮助或提示都会非常感激..

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

0 个答案:

没有答案