orangskye Posted November 8, 2012 Share Posted November 8, 2012 If I am in the checkout process (standard 5-step) and login or create a new account, it redirects me to My Account page. I would like to be able to go instead to the next step in the checkout process. Can anyone help? Link to comment Share on other sites More sharing options...
MEG Venture Posted November 8, 2012 Share Posted November 8, 2012 You can try to enable guest checkout. That way, you can skip the registering step. Link to comment Share on other sites More sharing options...
orangskye Posted November 9, 2012 Author Share Posted November 9, 2012 (edited) Hi Meg, thanks for the suggestion, but I want to allow people to create an account or login if they wish. Enabling guest checkout still does not allow them to continue with the checkout process if the login/register Edited November 16, 2012 by orangskye (see edit history) Link to comment Share on other sites More sharing options...
orangskye Posted November 14, 2012 Author Share Posted November 14, 2012 So I figured out I can change the redirect Tools::redirect('index.php?controller=my-account'); in authcontroller.php to make it go to a different page. However, I would like it to go to different pages depending on whether the customer is in the checkout process or just creating an account (no checkout). Can anyone help? Link to comment Share on other sites More sharing options...
bellini13 Posted November 16, 2012 Share Posted November 16, 2012 i think you would include the "back" parameter in the redirect url. for instance, if you want to login and redirect to my-account, you do this index.php?controller=authentication&back=my-account if you want to login and redirect to checkout, you do the following which will bring you back to step 1 of the checkout. index.php?controller=authentication&back=controller=order&step=1 Link to comment Share on other sites More sharing options...
orangskye Posted November 16, 2012 Author Share Posted November 16, 2012 Is there a way so that it redirects based on where the user is coming from? E.g. it will be able to tell if the user is in the checkout process, and should therefor go back to the cart? Or is this what the 'back parameter' is supposed to do? Link to comment Share on other sites More sharing options...
bellini13 Posted November 17, 2012 Share Posted November 17, 2012 you have to alter the code to detect what page you are currently on, and then redirect appropriately. Link to comment Share on other sites More sharing options...
skinnybloke Posted December 22, 2014 Share Posted December 22, 2014 Hi orangskye - did you find a solution to this? I have 3 sites and the login correctly redirects to the next page in the checkout process on 2 of them but I have the same problem you had on the 3rd site Link to comment Share on other sites More sharing options...
bellini13 Posted December 22, 2014 Share Posted December 22, 2014 @skinny, I believe the solutions were posted above. If you can better explain what is occurring to you (what link are you clicking that takes you to the my account page), then I might be able to help. On this 3rd site, it would be good to know what version of Prestashop, and what theme you are using. Link to comment Share on other sites More sharing options...
skinnybloke Posted February 10, 2015 Share Posted February 10, 2015 If anyone is interested I solved this by moving my site from 1&1 hosting to GoDaddy hosting. See more information here: https://www.prestashop.com/forums/topic/389170-help-checkout-pages-incorrectly-re-directing/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now