dzoxen Posted November 26, 2013 Posted November 26, 2013 Hi, I want that, when user clicks on logout, he is redirected to main page? So, I need this "{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" changed..? Thanx in advance Share this post Link to post Share on other sites More sharing options...
Rolige Posted November 26, 2013 Posted November 26, 2013 Easy... In PS 1.5 edit the file: classes/controller/FrontController.php Locate: elseif (isset($_GET['mylogout'])) { $this->context->customer->mylogout(); Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null); } Change for: elseif (isset($_GET['mylogout'])) { $this->context->customer->mylogout(); Tools::redirect('index.php'); } Regards. 1 Share this post Link to post Share on other sites More sharing options...
dzoxen Posted November 26, 2013 Posted November 26, 2013 I figured that it's easy.. Begginer Thank You so much Share this post Link to post Share on other sites More sharing options...
Rolige Posted November 27, 2013 Posted November 27, 2013 It's nothing, regards. Share this post Link to post 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