Question

we provide coupon codes for only Registered customers.

so what we did is when a guest applied a coupon code it will display a message

"please register" , but when guest succesfully registered , its redirecting to "checkout" page instead of

"shopping Cart" page. i want to redirect to "shopping cart" page after registration.

please help me to find solution

thanks in advance

Was it helpful?

Solution

try this:

  1. Go to customer accountcontroller find _welcomeCustomer method.
  2. Search for

$successUrl = $this->_getUrl('//index', array('_secure' => true));

replace this code with your custom URL

$successUrl = $this->_getUrl('customURL', array('_secure' => true));

*where is customURL input the page that you want the redirection to be made.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top