2 problems on onepage checkout:
1. I have to enter login details twice - first time it stays there and blanks the fields when I press the 'Login. button
2. When it does login it takes me to the customers account page and not to the next step in checkout.
3. The site is [australianplantsonline.com.au][1]
Please help !!!!!

[1]: http://australianplantsonline.com.au


You are probably missing the form_key hidden field in your template. From what version did you upgrade?

Check your persistent/checkout/onepage/login.phtml file and make sure you have the following line in your login form:

<?php echo $this->getBlockHtml('formkey'); ?>

Also check if you have the following code in core.xml:

    <block name="formkey" type="core/template" template="core/formkey.phtml" />

Post scriptum after speaking with this user:

Other than the formkey, the user had a module called Minerva Checkout not updated to work with his Magento version.

We fixed replacing line 35 of app/code/community/Minerva/Checkout/controllers/OnepageController.php




Mage::getSingleton('customer/session')->setBeforeAuthUrl(Mage::getUrl('*/*/*', array('_secure' => true)));

Hope it helps other people having the same issue.

| improve this answer | |
  • I only have a persistent folder in my base and not in my theme. In that file, I can't see a place to put "getBlockHtml('formkey'); ?>" as that usually goes after "<ul class="form-list", but I can't see that in this file. I'm somewhat inexperienced in this and bludgeoning around in the dark. – Peter Vowels Feb 16 '16 at 22:12
  • Somebody (not me) upgraded from 1.7 to and left me with a Rocky Horror show. Nothing much worked. Took me all day yesterday to thrash around and get things back up. These seem to be the only issues left. btw - thanks for your quick reply – Peter Vowels Feb 16 '16 at 22:15
  • Ok, so the problem is this, they changed it in 1.8. You are probably taking the login form from a template file that has not been projected for 1.8+ . Try looking for "checkout/onepage/login.phtml" too (without persistent). – Phoenix128_RiccardoT Feb 16 '16 at 22:18
  • You have to put this code just after the <form> tag open. – Phoenix128_RiccardoT Feb 16 '16 at 22:20
  • Tried in the persistent - didn't work - will now look for more ... – Peter Vowels Feb 16 '16 at 22:29

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.