mbre Posted October 21, 2009 Share Posted October 21, 2009 Hi.A have a question concerning the page that appears after customer (user) login. How can I change the default display page from http://www.mysite.com/my-account.php to something else? Lets say to http://www.mysite.com/index.phpThank for your help. Link to comment Share on other sites More sharing options...
rocky Posted October 21, 2009 Share Posted October 21, 2009 Change lines 9 and 156 of authentication.php from: Tools::redirect('my-account.php'); to: Tools::redirect('index.php'); Link to comment Share on other sites More sharing options...
mbre Posted October 22, 2009 Author Share Posted October 22, 2009 I also had to change line 10 in my-account.php from: Tools::redirect('authentication.php?back=my-account.php'); to: Tools::redirect('authentication.php?back=index.php'); You really helped me with your answer. Tnx again Link to comment Share on other sites More sharing options...
johnme Posted June 25, 2011 Share Posted June 25, 2011 I also did this . thanks a lot . i create one custom page . Called . shopguide.php.thanks a lot Link to comment Share on other sites More sharing options...
bsmooth Posted July 2, 2011 Share Posted July 2, 2011 I made changes to the AuthController.php file in PS 1.4Lines 42, 207, 275But it does not redirect me to the page index.php instead keeps going back to my-account.phpIs there a different file that I need to edit? Link to comment Share on other sites More sharing options...
mccartym2 Posted September 6, 2011 Share Posted September 6, 2011 I am also trying to change the redirect to index.php in PS 1.4 and changed the same lines and had the same outcome as you bsmooth. Does anyone know what files and what lines of code to change to fix this? Thanks Link to comment Share on other sites More sharing options...
EvolveGreg Posted October 7, 2011 Share Posted October 7, 2011 @bmsooth, @mccartym2: I just ran into this problem too. Near the lines you already changed, you'll see lines that say: Tools::redirect($back); Change those to: Tools::redirect('index.php'); That worked for me in 1.4.4.1 Hope that helps! Link to comment Share on other sites More sharing options...
mccartym2 Posted October 21, 2011 Share Posted October 21, 2011 Thank you EvolveGreg it worked perfectly! Link to comment Share on other sites More sharing options...
cyjambo Posted November 22, 2011 Share Posted November 22, 2011 Hi guys, Would you know how to actually redirect to the previous page? So if I come from a Category page, I would like to go back to this category page after logging in. I have searched the forum but can't find any solutions (although there are some topics). At the moment when I click the Login button from the blockuserinfo part of the site it takes me to: http://www.****.com/en/authentication?back=my-account.php I would like http://www.****.com/en/authentication?back="page-where-i-came-from" Hope this is possible! Thanks for the help!!! And big up for the Prestashop team!!! Link to comment Share on other sites More sharing options...
Luizsb Posted November 25, 2011 Share Posted November 25, 2011 Hi guys, Would you know how to actually redirect to the previous page? So if I come from a Category page, I would like to go back to this category page after logging in. I have searched the forum but can't find any solutions (although there are some topics). At the moment when I click the Login button from the blockuserinfo part of the site it takes me to: http://www.****.com/...=my-account.php I would like http://www.****.com/en/authentication?back="page-where-i-came-from" Hope this is possible! Thanks for the help!!! And big up for the Prestashop team!!! Hi guys, I've been searching for this solution long time... Did someone solved it? Could someone help me? Thanks in advance! Link to comment Share on other sites More sharing options...
Luizsb Posted November 25, 2011 Share Posted November 25, 2011 I think I found the better solution: http://www.prestashop.com/forums/topic/111298-how-to-redirect-user-to-the-original-page-after-authentication/page__view__findpost__p__690504 Link to comment Share on other sites More sharing options...
theme_designer Posted November 26, 2011 Share Posted November 26, 2011 Yes. That's it. Link to comment Share on other sites More sharing options...
mohitsareen Posted July 18, 2012 Share Posted July 18, 2012 HI I tried the same solution. While it changed the page from my-account to order history in my case, but now even if someone registers the page redirects to order-history. I wanted that the page should redirect to order-history only if someone logs in. If some one registers then it should still go to My-account. Any thoughts? 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