Timpet Posted June 30, 2010 Share Posted June 30, 2010 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 Link to comment Share on other sites More sharing options...
rocky Posted July 1, 2010 Share Posted July 1, 2010 I think you can just use the following: $cookie->variable = 'value'; This should add a variable to PrestaShop's cookie. Link to comment Share on other sites More sharing options...
ecentury Posted June 8, 2013 Share Posted June 8, 2013 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'} Link to comment Share on other sites More sharing options...
vekia Posted June 8, 2013 Share Posted June 8, 2013 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 More sharing options...
ecentury Posted June 8, 2013 Share Posted June 8, 2013 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 Link to comment Share on other sites More sharing options...
vekia Posted June 8, 2013 Share Posted June 8, 2013 create new cookie for customer, then you can use {if} conditions with this cookie 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