---
title: "How to Prevent Duplicate WooCommerce Pop-Ups with Cookies"
description: Stop the same WooCommerce message from reappearing in popups by storing shown messages in cookies. Pro.
url: "https://wpfactory.com/docs/woocommerce-popup-cookies/"
updated: "2026-09-27"
category: Pro Features
---

# 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](https://wpfactory.com/wp-content/uploads/step36.popup_-1024x495.png)

### Before you start

- WooCommerce, active.
- [Popups for WooCommerce: Add to Cart, Checkout & More](https://wpfactory.com/item/popup-notices-for-woocommerce/) Pro.

### 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](https://wpfactory.com/item/popup-notices-for-woocommerce/). [Get Popup Notices Pro](https://wpfactory.com/item/popup-notices-for-woocommerce/).

Related articles

- [How to Load WooCommerce Pop-Ups Only on Specific Pages](https://wpfactory.com/docs/woocommerce-popup-restrictive-loading/)
- [How to Auto-Close WooCommerce Pop-Ups After a Set Time](https://wpfactory.com/docs/woocommerce-popup-auto-close/)
- [How to Hide Specific Notices from WooCommerce Pop-Ups](https://wpfactory.com/docs/woocommerce-popup-ignore-messages/)
- [How to Style WooCommerce Pop-Up Notices with the Customizer](https://wpfactory.com/docs/woocommerce-popup-notices-custom-style/)
- [How to Play a Sound When a WooCommerce Pop-Up Opens](https://wpfactory.com/docs/woocommerce-popup-audio/)
