My cart.phtml already have <?php echo $this->getBlockHtml('formkey'); ?> but still clear shopping cart & update shopping cart is not working.

Please, give me better solution over this. Thank You in advance!

  • What magento version are you working on, and you have done any other changes? – TBI Infotech Jul 8 '14 at 6:12
  • are you facing this issue after magento upgrade ? – Pradeep Sanku Jul 8 '14 at 6:57
  • Magento version – swash_nam Jul 8 '14 at 7:25
  • Do you have any extension installed related to product/cart, try disabling that, as it does not seem to be breaking. – TBI Infotech Jul 8 '14 at 7:32

In your theme directory, in the file:


or in the file:


Just place on line 50 just after getUrl('checkout/cart/updatePost') ?>" method="post"> paste the below code:

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

it will work fine now.

  • Thanx its working :-) – swash_nam Jul 8 '14 at 7:34
  • GENIUS - ran into this with varnish + turpentine this answer solved my problem THANK YOU +1 – SR_Magento Aug 19 '14 at 15:39
  • It works, you save my day. – Ryan Wu Mar 13 '15 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.