During the process of converting an Iron & Wool ReadyTheme to the latest version of Shadows there seems to be a conflict with some javascript that might be unique to Iron & Wool that was used to create a page that outputs an add to cart form for each variant assigned to the product. The javascript that accompanies it is to add all the forms to the basket when the add to cart button is submitted using AJAX (this will also update the global header mini-basket fields).
There are two obvious indications that something is wrong. The tabs on the product page do not work and the add to basket does not work. When I took a peek at the console errors this one stands out:
I can link to the live site so you can see the page in action (in the Iron & Wool ReadyTheme) but this error is behind the gates.
This coding was/is to replace the Toolkit Attribute Quantity for radio buttons.
There are two obvious indications that something is wrong. The tabs on the product page do not work and the add to basket does not work. When I took a peek at the console errors this one stands out:
Uncaught SyntaxError: redeclaration of const addToCart
This coding was/is to replace the Toolkit Attribute Quantity for radio buttons.
Comment