Jump to content

[SOLVED] prestashop module use jquery cookie plugin to disable a message


Recommended Posts

Hi,

In a module I want to show some message to the visitors and there will be a close button and when the users will click on the close button the message will be closed.

But when I am again reloading the page the message is again showing. For that I have gone through many sites and forums and I have got one jQuery plugin called as jquery-cookie. But I don't know how to assign the value of cookie in my module. So can some one kindly tell me how to do this?

Link to comment
Share on other sites

you can create cookie in many ways, with php - with setcookie() funcition and also with javascript document.cookie command

 

which one to use?

everything depends on how your script exactly works. 

I want to use cookie in jQuery. But I think for that I have to assign cookie name. So can you tell me is there any way to get the cookie name from the module or any name which I will assign in cookie with the jQuery cookie plugin will work?

Link to comment
Share on other sites

×
×
  • Create New...