By visiting our site, you agree to our privacy policy regarding cookies, tracking statistics, etc.

proper noun logo blue
  • Content Marketing
    • SEO Articles
    • Pillar Content
    • Website Content
    • Content Briefs
  • Off-Page
    • Managed Outreach
  • Optimization
    • Content Optimization
    • Technical SEO
  • Verticals
    • Ecommerce SEO Services
    • SaaS SEO Services
    • Enterprise Business SEO
    • Local SEO Services
  • Case Studies
  • Support
The Roadmap
Book A Demo
Update Cart Not Working On Magento 1.9?
May 1, 2021by adamUncategorized

Update Cart Not Working On Magento 1.9?

We recently upgraded a Magento website for a client from version 1.4 to the most recent version (at the time), version 1.9.0.1. Once we were able to resolve the major issues from the upgrade, there were still quite a few minor issues that took some time to recognize. One of these issues was that the “Update Cart” button was not affecting the cart quantity.

The first place to look was the file that contained the update cart button, which is within the folder app/design/frontend/rwd/THEME NAME/template/checkout/cart.php. Once the file is opened, look somewhere around line 100 for the button, which should look like this:

[php] <button type="submit" name="update_cart_action" value="update_qty" title="<?php echo $this->__(‘Update Shopping Cart’); ?>" class="button btn-update"><span><span><?php echo $this->__(‘Update Shopping Cart’); ?></span></span></button>
[/php]

If your button is already set up properly, it’s likely your checkout form is missing or has an incorrect form key, which is required for the form to validate. First, search your template for the string ‘formkey’ to either locate it on your template, or confirm it is missing all together. If it is there, it’s likely the entire snippet looks something like this:

[php] <?php echo $this->getBlockHtml(‘formkey’); ?>
[/php]

If so, you can either comment this out, edit it, or remove it all together so that it can be replaced by:

[php] <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton(‘core/session’)->getFormKey(); ?>"/>
[/php]

If you can’t find the string ‘formkey’ anywhere in your document, you will just need to add in the above snippet into the form on cart.phtml. You can find the closing fieldset for the form around line 117 and paste it in just before it.

Once your file is updated to include the correct key, recheck your “Update Cart” button and everything should be working as needed.

Read More
Share
proper noun logo blue

Proper Noun is an SEO, digital growth, and content marketing agency located in Fort Lauderdale, FL.

Twitter Facebook-f Google-plus-g Pinterest-p Linkedin-in

Contacts

Our Offices
300 SW 1st Ave #155
Fort Lauderdale, FL 33301
Give Us A Call
(954)674-1258

Our Services

  • Content Marketing
  • Ecommerce SEO Services
  • Enterprise Business SEO
  • Managed Outreach
  • Technical SEO
  • Website Optimization

Our Company

  • Blog
  • Contact Us
  • Book A Demo
  • Case Studies
  • Article Writing
  • Website Directory

© 2022 Proper Noun. All Rights Reserved.

Proper Noun is a content marketing agency located in Fort Lauderdale, FL. Proper Noun provides managed content marketing campaigns and managed outreach campaigns for ecommerce businesses, saas products, law firms, real estate, enterprise businesses and much more. We also offer a la carte content creation services.

Markets We Serve

  • Ecommerce SEO
  • Enterprise SEO
  • International SEO
  • National SEO
  • Local SEO
  • B2B SEO
  • Whitelabel SEO
  • SEO Consulting
  • SEO Reseller

Contacts



8 800 2563 123

  emil@yoursite.com

 27 Division St, New York, NY 10002, United States