Monday 9 November 2015

Shopping cart quantity not able to update after magento upgrade - Magento

After upgrading your magento to 1.8.1.0, there has been problem with update quantity of shopping cart in community version 1.8.1.0. For example just change quantity from 1 to 2 and hit update, the quantity did not change.

If you are facing this issue that means you are using the custom template file for the /checkout/cart.phtml in yout theme.with the recent upgrade magento has been introduced in the base version of the magento since you are using the custom template this changes won't be reflected in your page.

The better approach is to add the updated lines to your own cart.phtml file.

In your theme directory

In your /app/design/frontend/<theme>/default/template/checkout/cart.phtml file or /app/design/frontend/default/<theme>/template/checkout/cart.phtml file

Just place on line 50 just after
<form action="<?php echo $this->getUrl('checkout/cart/updatePost') ?>" method="post">
paste the below code

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


it will work fine now.

No comments:

Post a Comment