Error “Cannot add the item to shopping cart” after upgrade magento 1.9.1.1 to 1.9.3.7 [duplicate]

magento.stackexchange https://magento.stackexchange.com/questions/210767

  •  28-12-2020
  •  | 
  •  

Question

Getting error on all add to cart links on product listing page.

=> Please assist me. Thanks!

Était-ce utile?

La solution

It can be because of form key. You need to add following line to add form key just after form tag in give file list

<?php echo $this->getBlockHtml('formkey') ?>

1) For Add to cart in product view app/design/frontend/theme/package/template/catalog/product/view.phtml

2) For login & customer registration app/design/frontend/theme/package/template/persistent/customer/form/login.phtml app/design/frontend/theme/package/template/persistent/customer/form/registration.phtml

3) Update cart app/design/frontend/theme/package/template/checkout/cart.phtml

If this is fine then also possible because of new patches. Please Check: Security Patch SUPEE-10415 - Possible Issues?

https://gist.github.com/balloz/ceaf5feb5ac66caaa82342441d32aa88

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top