I cannot understand the logic of what magento is doing after login submit action in onestepcheckout page.

My problem is that after login the user is redirected to My Account and I want the user to stay in the same onestepcheckout page.

Can anyone throw some light here?

<form id="login-form" action="<?php echo $this->getPostAction() ?>" method="post" class="checkout-step-body checkout-step-style form form--checkout clearfix">

function onepageLogin(button)
    if(loginForm.validator && loginForm.validator.validate()){
        button.disabled = true;

  • Try this admin>System>Configuration>Customer>Redirect Customer to Account Dashboard after Logging in setting make it NO – Magento 2 Apr 25 '16 at 9:26
  • I want the customers to go to MyAccount in the normal login. That's the reason the redirection is set to YES in that config section. – nano Apr 25 '16 at 9:27
  • Do you using any extension for onepage checkout? – Prashant Valanda Apr 25 '16 at 9:35
  • No extensions. Just a custom onepagecontroller doing minor stuff for the moment, nothing related with login. – nano Apr 25 '16 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.