Hello,
I’m developping an application that needs to perform several checks on the user before arriving at the ‘checkout’ page. My idea is to redirect the user to the cart page after login si I can perform all the checks I need to do.
Firstly, I configured my shop by ticking the ‘Require customers to log in to their account before checkout’ box.
Secondly I added an extension (Ymq B2B Login/Lock Hide Price) to redirect the user to the cart page after login. It works sometimes only, in some case I have problem. Here is one :
When I add an item to the cart and I click on the Check out button, I’m redirected to the login page (which is good) ! But after I log on, I’m redirected directly to the checkout page, not the cart page !
I see that my url contains a ‘checkout_url’ parameter during login.
But I really need to redirect the user to the cart page because as soon as it reaches the checkout page, I can no longer interact with it.
I’ve seen one solution about adding code directly to the theme, but it’s not a good solution : When I transfer the application to other shops, they’ll also have to configure their theme and that’s not very practical.
Thank you for your help,
Mathieu