-
Hi,
Variable products fail adding the selected product to the cart.
The console reports an error on the script.min.js file.
Updating WP or the theme can’t solve this issue.
Deleting the script.min.js file shows the variable product working fine (with a “file not found error” on the console but it works), so it looks like the problem is on the theme JS file.Working on WP 4.4.2 and DMCS theme updated on March 16th 2016.
Reported error:
Uncaught TypeError: Cannot read property ‘replace’ of undefined(anonymous function) @ script.min.js?ver=1.1.15:1m.extend.each @ jquery.js?ver=1.11.3:2d @ script.min.js?ver=1.1.15:1(anonymous function) @ script.min.js?ver=1.1.15:1m.event.dispatch @ jquery.js?ver=1.11.3:4r.handle @ jquery.js?ver=1.11.3:4m.event.trigger @ jquery.js?ver=1.11.3:4e.event.trigger @ jquery-migrate.min.js?ver=1.2.1:2(anonymous function) @ jquery.js?ver=1.11.3:4m.extend.each @ jquery.js?ver=1.11.3:2m.fn.m.each @ jquery.js?ver=1.11.3:2m.fn.extend.trigger @ jquery.js?ver=1.11.3:4(anonymous function) @ add-to-cart-variation.min.js?ver=2.5.5:1m.event.dispatch @ jquery.js?ver=1.11.3:4r.handle @ jquery.js?ver=1.11.3:4m.event.trigger @ jquery.js?ver=1.11.3:4e.event.trigger @ jquery-migrate.min.js?ver=1.2.1:2(anonymous function) @ jquery.js?ver=1.11.3:4m.extend.each @ jquery.js?ver=1.11.3:2m.fn.m.each @ jquery.js?ver=1.11.3:2m.fn.extend.trigger @ jquery.js?ver=1.11.3:4(anonymous function) @ add-to-cart-variation.min.js?ver=2.5.5:1m.event.dispatch @ jquery.js?ver=1.11.3:4r.handle @ jquery.js?ver=1.11.3:4m.event.trigger @ jquery.js?ver=1.11.3:4e.event.trigger @ jquery-migrate.min.js?ver=1.2.1:2(anonymous function) @ jquery.js?ver=1.11.3:4m.extend.each @ jquery.js?ver=1.11.3:2m.fn.m.each @ jquery.js?ver=1.11.3:2m.fn.extend.trigger @ jquery.js?ver=1.11.3:4(anonymous function) @ add-to-cart-variation.min.js?ver=2.5.5:1m.event.dispatch @ jquery.js?ver=1.11.3:4r.handle @ jquery.js?ver=1.11.3:4
Variable product not working, script error
This topic is: not resolved