I need to redirect URL for particular user for example if men login the site must redirect to men category and if women login the site must redirect to women category . here following code i have used for redirection .
if(men)
$this->_redirect(‘men’);
else
$this->_redirect(‘women’);
can anyone explain me what i did wrong? above code is not working for me.
thanks
Prakash
You can override the
Mage_Customer_AccountController::_loginPostRedirect()method in order to redirect wherever you want after login.If in case Men & Women are customer groups then you can easily redirect them to any page you like using the following ready made extension:
http://www.magepsycho.com/custom-login-redirect-pro.html
Cheers!