PsychoZzzorD Posted October 28, 2016 Share Posted October 28, 2016 Hi guys,I have an information pop-up on my website, but actually she spawns at each page, regardless of if you close it or not. I would like that the pop-up stay closed when the customer change page after closing it. Do somebody has an idea of how to do ?I wanted to use cookies but I don't really understand how to do it :/ Link to comment Share on other sites More sharing options...
NemoPS Posted October 29, 2016 Share Posted October 29, 2016 Is it popping up as soon as the page loads? Set a cookie if so, once you close it the first time. Prestashop uses totalStorage:$.totalStorage('display', 'list');The first parameter being the cookie name, the second, your value. Just set it to $.totalStorage('popupclosed', 1);And then check if it's true every time 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