Magento Onepage Checkout – Fix Redirect Issue for Registered Customer Login

checkouterroronepage-checkoutredirect

I have recently upgraded to 1.8.1 and am fairly new to magento. All other aspects of my site seems to be working just fine, however when a customer with an existing account adds item to the cart and goes to checkout, and then is presented with the one page section: ‘Already registered? Log in below:’ the login button redirects to the ‘Login or Create an Account’ page. Once logged in through there the customer can then go through the checkout process again and orders can be placed, but it is far more hassle than it needs to be!

Any help would be greatly appreciated!

N.B: Website is https://astuteclothing.co.uk

Best Answer

I had the exact same problem. I bought a template for 1.7.2, not knowing I just installed version 1.8.1.

One of the things I had trouble with was this situation. The fix is not that hard.

In the app/design/frontend/default/[themename]/template/persistent/checkout/onepage/login.phtml you will have to add a signle line.

Find <ul class="form-list"> and add:

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

I also had to do the same in app/design/frontend/default/[themename]/template/persistent/customer/form/login.phtml .