Jump to content

Edit History

PF22

PF22


syntax error

On 12/6/2018 at 12:15 AM, wilebaldo said:

I add this code


if (!$this->context->customer->isLogged() && $this->cms->id == 6) {
        Tools::redirect('index.php?controller=authentication');
        }

 

Hi there!

Is there a way for the customer to automatically go back to cms 6 page after authentification ?

I tried somthing like that but it failed...

Tools::redirect('index.php?controller=authentication?back=/content/29-my-page/')
PF22

PF22


syntax error

On 12/6/2018 at 12:15 AM, wilebaldo said:

I add this code


if (!$this->context->customer->isLogged() && $this->cms->id == 6) {
        Tools::redirect('index.php?controller=authentication');
        }

 

Hi there!

Is there a way for the customer to automatically go back to cms 6 page after authentification ?

I tried somthien like that but it failed...

Tools::redirect('index.php?controller=authentication?back=/content/29-my-page/')
PF22

PF22

On 12/6/2018 at 12:15 AM, wilebaldo said:

Hi there !

I add this code


if (!$this->context->customer->isLogged() && $this->cms->id == 6) {
        Tools::redirect('index.php?controller=authentication');
        }

Is there a way for the customer to automatically go back to cms 6 page after authentification ?

I tried somthien like that but it failed...


Tools::redirect('index.php?controller=authentication?back=/content/29-my-page/')

 

 

×
×
  • Create New...