Advertisement

Tuesday 9 April 2013

Magento Redirect After Login Not Working - FIXED

1. Go to

           System > Configuration > Customers > Customer Configuration > Login Options

            Make it as NO



2. To Redirect to previous page after login. Go to page login.phtml and replace form action i.e. line 40 or if you are using mini login than go to page mini.login.phtml and replace form action i.e. line 28 with the one given here.


Replace with:

          
<form action="<?php echo $this->getPostActionUrl() ?>" method="post"> 


to:

<form action="<?php echo str_replace('login', 'loginPost', $this->helper('customer')->getLoginUrl()) ?>"  
method="post" id="login-form">

No comments:

Post a Comment