Jump to content

Checkout login going to My Account page


Recommended Posts

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

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

  • 2 years later...

@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

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...