redirect to “Shopping cart” page instead of “Checkout” page after registration
-
13-12-2019 - |
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
Solution
try this:
- Go to customer
accountcontroller
find _welcomeCustomer method. - 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