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
  •  | 
  •  

Pregunta

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

=> Please assist me. Thanks!

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top