Access values set in the Controoller in Prestashop 1.6

0

I'm setting the cookie value in FrontControlller:

this->context->cookie->utm_campaign = $_GET['utm_campaign'];

But accessing in the OrderConfirmationControllerCore is coming null:

$this->context->cookie->utm_campaign;

I've also tried and it's still coming empty:

$this->context->smarty->assign('utm_campaign', $this->context->cookie->utm_campaign);   
    
asked by anonymous 21.09.2017 / 18:52

1 answer

0

I solved the problem by creating a cookie by jscript instead of using prestashop. Another problem I identified was that Chrome does not create cookies from localhost, only on Edge did I test.

    
04.10.2017 / 13:12