Originally posted by Matt Zimmermann
View Post
Announcement
Collapse
No announcement yet.
Javascript conflict(s) from old ReadyTheme
Collapse
X
-
Thanks, I sent an email to Nick Developer Support (he had helped me replace the Toolkit coding with native coding), I have an appointment Monday with Mike but I was really hoping to get this going a lot sooner. Mike mentioned that there is some duplicated javascript. I'll keep emailing him my findings and hopefully he can email me a reply. Thanks!
-
Hi Leslie,
Since it's behind security and a functional conversion, I would recommend contacting support.
Leave a comment:
-
All changing the declaration of addToCart from const to let did was this:Originally posted by Matt Zimmermann View PostHi Leslie,
When you see the error, the console should mention what line and file are affected. It is probably in the extensions.js file.
Uncaught SyntaxError: redeclaration of let addToCart
Leave a comment:
-
Yeah, I was just digging through that - it is pointing to the JavaScriptCombinedResource_Code=scripts (in the footer_js group)Originally posted by Matt Zimmermann View PostHi Leslie,
When you see the error, the console should mention what line and file are affected. It is probably in the extensions.js file.
Leave a comment:
-
Hi Leslie,
When you see the error, the console should mention what line and file are affected. It is probably in the extensions.js file.
Leave a comment:
-
If I knew where to, I would. I'll see what I can figure out though. Thanks!Originally posted by Matt Zimmermann View PostHi Leslie,
Try changing the declaration of addToCart from const to let.
Leave a comment:
-
Hi Leslie,
Try changing the declaration of addToCart from const to let.
Leave a comment:
-
Javascript conflict(s) from old ReadyTheme
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.Uncaught SyntaxError: redeclaration of const addToCart
This coding was/is to replace the Toolkit Attribute Quantity for radio buttons.
Tags: None
Leave a comment: