Jump to content

Link with parameters


dramans

Recommended Posts

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 by dramans (see edit history)
Link to comment
Share on other sites

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

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...