PrestaCraft on Facebook

Please like our page on Facebook to get notifications about new tutorials :)



Today I will show you how can you simple set and get your custom cookie variable.
It is useful when you want to keep locally on user’s PC some settings.

Setting cookie

Getting cookie

Check if cookie exists

Deleting cookie

Final words

Remember – if you don’t have access to $this->context, you can replace it with Context::getContext().

That’s all – as simple as that!

Add a comment

Leave a comment

Your email address will not be published.