kanasaikuat Posted January 29, 2015 Share Posted January 29, 2015 Hi, anyone know how to store array in prestashop cookie? I got error when doing this. $arrtest = array('one','two','three'); $this->context->cookie->test = $arrtest; Link to comment Share on other sites More sharing options...
FullCircles Posted January 29, 2015 Share Posted January 29, 2015 You can use serialize($arrtest); and unserialize($this->context->cookie->test); to convert arrays to safe strings for any situation where you can't just plug them in, so that'll be a simple solution 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