2 Major Magento 1.8.1 Update Customer Login & Cart QTY Update Issues: Solved

Yesterday I updated one of my client’s Magento installations from 1.7 to 1.8.1 – I didn’t know I had issues until customers starting calling saying they couldn’t login. After I found the solution and fixed it, I found out from another forum thread there was another problem I didn’t even know existed.

1. Magento Customers Can’t Login to Frontend

customers-cant-login-magento-1-8-1

It doesn’t matter how many times you reset the customer’s password or change it to a simple one like, “123456”, in the backend, you will go insane. Magento’s 1.8.1 customer login form has a missing form_key field in the form which is used in the form key validation for loginPostAction.

The fix? Open the app/design/frontend/yourtheme/childtheme/template/persistent/customer/form/login.phtml and find:

<ul class="form-list">

then, right below it, add the following code:

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

If you don’t have this file, then look in the parent theme’s default directory or go as far as creating a copy from the default/default and saving it in your child theme.

2. Shopping Cart QTY Doesn’t Update When Customers Click Update

qty-doesnt-update-magento-1-8-1

If you didn’t know about this one, you’re not the only one who had a rude awakening. If you haven’t made this fix yet, test out your Magento 1.8.1 shopping cart by adding a product to the cart then changing the quantity and click the Update Cart button… it won’t work, that is unless you only want your customers to only order one of everything you sell – I guess not….

Open /app/design/frontend/yourtheme/childtheme/template/checkout/cart.phtml and find this code:

<form action... >

add the following code

<input type="hidden" name="form_key" value="<? echo Mage::getSingleton('core/session')->getFormKey(); ?>" />

If you don’t have this file in your child theme, look for the file in /yourtheme/default/. This is the same code used to fix the customer login issues in Magento 1.8.1

Well, hopefully I don’t have to update this post with any more “major Magento 1.8.1 update issues”.

Peace!

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.