Conditional Cookie (Checkbox)
-
Hello, I would like/need the possibility to provide a checkbox to the customer to choose if he want’s e cookie set or not on closing the popup.
e.g.
[]?Do not show this popup again.Although I found the article on creating a cookie on click, there is one issue. As soon as someone clicks the checkbox the cookie is set. But if decides to uncheck it again the cookie is already set.
https://docs.wppopupmaker.com/article/230-create-cookie-on-the-click-of-an-element-within-your-popup
Any ideas how to do is such that the cookie is only set when the box is checked and the close button is clicked?
Best, Michael
- The topic ‘Conditional Cookie (Checkbox)’ is closed to new replies.