cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9.1.x - Add to Cart Broken on Chrome Browser

Magento 1.9.1.x - Add to Cart Broken on Chrome Browser

We are on Magento 1.9.1.x

Our add to cart function suddenly stopped working on the chrome browser. When we try to to add a product to cart, we see a status message saying product has been successfully added to cart.

browser window message 

{"product_name":"ABC","message":"ABC was added into cart.","r":"success"}

When we hit the browser back button, and click on the mini cart, it shows that the product has been added.

When we reach the check out page, the State/Provice drop down disappears, as a result we cannot checkout.

This problem is limited to the google chrome browser. No issues on safari or microsoft edge.

 

Chrome Developer Console shows several errors on the product page add to cart Add-To-Cart on product page

prototype.js:530 Uncaught TypeError: element.attachEvent is not a function at Function.observe (prototype.js:530) at klass.initialize (validation.js:5) at new klass (prototype.js:7) at klass.initialize (form.js:2) at new klass (prototype.js:7)

prototype.js:530 Uncaught TypeError: element.attachEvent is not a function at observe (prototype.js:530) at HTMLAnchorElement._methodized [as observe] (prototype.js:60) at prototype.js:122 at prototype.js:111 at prototype.js:104 at Array.forEach () at Array.each (prototype.js:104) at Array.collect (prototype.js:111) at Array.invoke (prototype.js:122)

observe @ prototype.js:530 _methodized @ prototype.js:60 (anonymous) @ prototype.js:122 (anonymous) @ prototype.js:111 (anonymous) @ prototype.js:104 each @ prototype.js:104 collect @ prototype.js:111 invoke @ prototype.js:122

 

No errors on the cart page.

 

Two errors on the checkout/onepage

prototype.js:530 Uncaught TypeError: element.attachEvent is not a function at Function.observe (prototype.js:530) at klass.initialize (validation.js:5) at new klass (prototype.js:7) at klass.initialize (form.js:2) at new klass (prototype.js:7) at (index):1154 observe @ prototype.js:530 initialize @ validation.js:5 klass @ prototype.js:7 initialize @ form.js:2 klass @ prototype.js:7 (anonymous) @ (index):1154 (index):1243 Uncaught TypeError: $(...).setAttribute is not a function at (index):1243

Any pointers on how to troubleshoot and isolate the problem? We are new to this, your help will be greatly appreciated.

2 REPLIES 2

Re: Magento 1.9.1.x - Add to Cart Broken on Chrome Browser

This issue was related to end point cache, it has been resolved.

Re: Magento 1.9.1.x - Add to Cart Broken on Chrome Browser

We are facing same issue again? Is there any solution?