How can i Redirect customer to “Register” page if use email address and password is wrong?

magento.stackexchange https://magento.stackexchange.com/questions/9235

  •  16-10-2019
  •  | 
  •  

سؤال

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

هل كانت مفيدة؟

المحلول

You can override this method: Mage_Customer_AccountController::loginPostAction and in case Mage_Customer_Model_Customer::EXCEPTION_INVALID_EMAIL_OR_PASSWORD just redirect to $this->getUrl('customer/register'), but I don't recommend it. Sometimes users fill in a wrong password and it becomes annoying to have to click again on the login link.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top