Discount popup: offer, code validity and the cart

What the shopper can get, how long the code is valid, how it gets into the cart and what happens when the cart already has another code. The reminder with the code at the top of the store.

⏱ 5 minBeginnerUpdated 14 Oct 2026

Every e-mail address gets its own single-use code, valid for one order. The module creates the codes in its own cart price rule, which it manages itself.

1. The offer

Marketing › Discount Popups › Campaigns › (campaign) › Offer

  • Percentage discount (1 to 90%) or Amount off,
  • Free shipping,
  • Existing cart price rule: only active rules with automatically generated codes can be chosen,
  • No discount (email sign-up only): the pop-up collects sign-ups and says thank you, no code.

If you want, enter a Minimum cart value (products including tax) and a Code prefix, for example WELCOME-. Under The code is valid for choose 7, 14 or 30 days. When the code comes after double opt-in, the time counts from the confirmation.

Editing a campaign with the General, Offer and Look sections
In the Offer section you choose what the shopper gets, the value, the validity and the code prefix.
Do not edit the rule the module created by hand. When you change the offer, the module retires the old rule and makes a new one, so codes already issued keep their promise.

2. How the code gets into the cart

With Add the code to the cart automatically on (default), the code goes in at once if the cart has products, or with the first product if the cart is empty. The shopper can also copy it. With Also send the code by email it lands in the inbox too.

The pop-up with the discount code, a Copy button and a note that it is added with the first product
With an empty cart the pop-up says the code is added with the first product, and until when it is valid.

3. The cart already has another code

Magento allows one discount code at a time. The module never replaces another code silently: the shopper chooses Use the new code or keeps the existing one. If they keep it, the new code stays valid and is in the e-mail.

The pop-up with a choice between the code already in the cart and the new code
The shopper chooses which code stays in the cart.

4. The reminder with the code

After the sign-up a bar at the top of the page shows the code, a copy button and the time left. Switch it on in the Frequency section with Reminder with the code after the sign-up. Whoever closes the pop-up without signing up can open it again from the tab at the edge (Tab after closing).

A bar at the top of the store with the code, a copy button, the validity and a checkout link
The reminder stays at the top of the store while the code is valid.
Magento does not end coupons by itself. The module removes a code whose time has run out from the cart, so nobody gets the discount after it expires.
The code is not in the cart

Check the minimum cart value and whether the cart already has another code. If the store asks subscribers to confirm, the code is issued only after the confirmation.

Next: Discount popup: double opt-in and new subscribers only.

Was this article helpful?

Related