3

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.

7

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(); ?>" >
</form>
  • 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 Jan 8 '15 at 15:22
  • So many templates to update, but it's a good thing to have the form key to prevent attacks. – DWils Jun 23 '15 at 23:15

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.