Hello,
ShopSite® Pro 14.0 r3 Running into an issue using IE 11 product does not "Add to Cart" as well as view cart link does not work. I've tried on multiple computers and none worked with default browser settings nor could I update/tweak settings to work. CJ template for pages. CJ Side Accordion for products. Site is under development however you can test it yourself at: https://www.home-tropics.com/Decorative-Mailbox-Post-Seahorse.html
Knowledgebase/announcement mentioned ShopSite v14.0 r3 Maintenance Release "fixes an issue with CJ-based themes where in Internet Explorer 11 the Checkout button can be off the right side of the screen." however this is a different issue.
Is this a known bug? IE 11 still has roughly 7% browser market share.
CJ-based theme not working Internet Explorer 11
-
- Posts: 204
- Joined: Mon Apr 30, 2007 8:25 am
-
- Site Admin
- Posts: 318
- Joined: Fri Aug 04, 2006 1:30 pm
- Location: Utah
- Contact:
Re: CJ-based theme not working Internet Explorer 11
Our engineer reports:
There is a Console error when the add to cart button is clicked:
SCRIPT438: Object doesn't support property or method 'endsWith'
cj.js (13,7)
The fix for this is to add this javascript to the cj.js or anywhere on the page:
if(!String.prototype.endsWith){String.prototype.endsWith=function(s,l){if(l===undefined||l>this.length){l=this.length;}return this.substring(l-s.length,l)===s;}}
This will add the endsWith method function to the String prototype so that it is available just like it is in every other browser. There might be other javascript errors in IE11 but this will get the store working.
They could also turn off the "AJAX Add to Cart Popup" in Commerce Setup
There is a Console error when the add to cart button is clicked:
SCRIPT438: Object doesn't support property or method 'endsWith'
cj.js (13,7)
The fix for this is to add this javascript to the cj.js or anywhere on the page:
if(!String.prototype.endsWith){String.prototype.endsWith=function(s,l){if(l===undefined||l>this.length){l=this.length;}return this.substring(l-s.length,l)===s;}}
This will add the endsWith method function to the String prototype so that it is available just like it is in every other browser. There might be other javascript errors in IE11 but this will get the store working.
They could also turn off the "AJAX Add to Cart Popup" in Commerce Setup