I've been working on a Magento website: satcogrowlight.com

I am very new to working with Magento in the back end.

My problem is that once I've added an item to my cart, I cannot change the quantity in the cart. I enter in the new quantity, click "Update Shopping Cart", the page refreshes, and everything remains the same.

I have no idea where to start troubleshooting. I haven't made any changes to the code, as far as I remember.

1 Answer 1


you have to include the form key,in cart.phtml.

<form method="post" action="<?php echo $this->getBaseUrl('checkout/cart/updatePost')?>">
         <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" >
  • 1
    This worked! Thank you so much. For future readers: The location of this file is /app/design/frontend/default/YOUR_THEME/template/checkout
    – Tara
    Commented Jan 8, 2015 at 15:22
  • So many templates to update, but it's a good thing to have the form key to prevent attacks.
    – DWils
    Commented Jun 23, 2015 at 23:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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