i am new in magento i want to redirect customer to "Register" page when customer click on log in button if user email address and password is not match Thank you
You can overload the relevant controller which is app/code/core/Mage/Customer/controllers/AccountController.php
In order to do so, follow that guide : http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/how_to_overload_a_controller
Then, in your module's AccountController.php class, overload the loginPostAction() method and add the following line where relevant, to redirect the customer to the registration page :
$this->_redirect('*/*/create');
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments