dramans Posted February 19, 2017 Share Posted February 19, 2017 (edited) Hi, I am new in prestashop (version 1.6) and I have some problem about a link. I want to add another login link with extra parameters so that I can hide registration part from connexion page. So in nav.tpl, I added extra parameters : $link->getPageLink('my-account', true, NULL, ['params' => 'myTest'])|escape:'html':'UTF-8'} When I click on that link, It completely disappear and in AuthController (initContent) Tools:getValue('params') returns null. I don't know how to figure it out. Thanks Edited February 19, 2017 by dramans (see edit history) Link to comment Share on other sites More sharing options...
tmzwinkels Posted February 20, 2017 Share Posted February 20, 2017 I guess you are not logged in, so FrontController will redirect you to authentication controller : if ($this->auth && !$this->context->customer->isLogged($this->guestAllowed)) { Tools::redirect('index.php?controller=authentication'.($this->authRedirection ? '&back='.$this->authRedirection : '')); } Could you explain more "I can hide registration part from connexion page" ? 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