Jump to content

[SOLVED] Using prestashop cookie to a module


Timpet
 Share

Recommended Posts

I dont know much about cookies, but i would like to use the prestashop cookie to store some a parm in, is this easy to do, and how will i do it :)

And how will i retrive it again :)

EDIT: Thank you

Share this post


Link to post
Share on other sites

  • 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

Share this post


Link to post
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

 

Thanks

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More