Jump to content

[SOLVED] Using prestashop cookie to a module


Recommended Posts

  • 2 years later...

Hi Timpet


trying to do the same as you here


so you can just store it in

$cookie->variable = 'value';



How do you use the variable exactly?


{if $cookie->'value'}


in prestashop 1.5.x use context object instead the $cookie

Link to comment
Share on other sites

Thanks for that

What I am trying to do is add a form where the customer can choose option a or b. Then it saves this response.

Then use this variable in if else queries.


Do you know how to do this as I cannot get it to work



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