Force popup to open again
-
Hi,
I’ve got a popup where users write a CP to see if they can buy in our store. In the confirmation I’ve a query to database, and in case they can buy a set a cookie by javascript, with CP value, and in case they can’t buy, I set this cookie value as NO. Then I refresh the page an show the user a message. The popup is controlled by a Session Cookie, pum-20.What I need is that if user enters a CP invalid, and then, click again the Buy button (which triggers the popup), the popup shows again. But as in first time, it created the pum-20 cookie, the popup doesn’t open again.
So, how can I show the popup always, if you enter an invalid CP? Should I delete the cookie? How?
Thank you four your help!
- The topic ‘Force popup to open again’ is closed to new replies.