View Categories

How to Prevent Duplicate WooCommerce Pop-Ups with Cookies

To prevent duplicate pop-ups in Popups for WooCommerce: Add to Cart, Checkout & More Pro, go to WPFactory > Popups, open the Cookies group in the General section, tick Enable, set the Expiration time in hours (default 0.5), and choose a Message origin of Static, Dynamic, or All. This is a Pro feature.

Cookie options with message origin

Before you start #

Step-by-step #

  1. Go to WPFactory > Popups (also reachable at WooCommerce > Settings > Pop-up Notices).
  2. In the General section, open the Cookies group.
  3. Tick Enable.
  4. Set Expiration time in hours (default 0.5, which is 30 minutes).
  5. Choose a Message origin: Static, Dynamic, or All.
  6. Save changes.

Options reference #

Setting Option ID Default
Enable ttt_pnwc_opt_cookie_enabled No
Expiration time (hours) ttt_pnwc_opt_cookie_time 0.5
Message origin ttt_pnwc_opt_cookie_msg_origin Static

Static, Dynamic, or All #

  • Static: fixed messages that are known in advance, such as a plain “product added” text.
  • Dynamic: messages that change each time, such as ones that include a product name and are built via AJAX.
  • All: stores both static and dynamic messages.

Ready to set this up? #

Cookies are a Pro feature of Popup Notices. Get Popup Notices Pro.