tillidan Posted April 11, 2011 Share Posted April 11, 2011 Hi,I think when you first enter to a prestashop shop web, prestashop creates a cookie. My web has a initial popupmessage (with enter or exit button) and I need a way to know if a customer has enter in the web, this popupmessage must not show again. In that case I tried the code $cookie->isLogged() in header.tpl and it works. But if someone is not logged, I need to know if that person click that popupmessage before, an option is that if the prestashop cookie exists, the person click the popmessage before.I tried to use a variable called "cookie->variable" in header.tpl like this: {$cookie->variable = 'valor'} , but this sentence doesnt set a valor to the variable.Maybe you know same examples about this issue and help me to know how it works. Maybe another ways to achieve this. Thanks.Regards,Javier. Link to comment Share on other sites More sharing options...
Burhan BVK Posted April 11, 2011 Share Posted April 11, 2011 You should put that assignment into the header.php file. 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