Adding a discount code
A coupon code is one of the best rewards you can give a shopper after they share their email or finish your quiz. SupaPop has a built-in Coupon Code section that shows the code in a styled box with a one-click Copy button. Pair it with a button that sends people to your cart or checkout, and you turn a sign-up into a sale.
One thing to know up front: SupaPop displays the code you type, but it does not create the discount inside Shopify. You set up the real discount in Shopify, then show the matching code in your popup. More on that below.
Before you start
- Create the discount in Shopify Admin > Discounts first. Use the exact code you plan to show (for example
SAVE20). If you skip this step, the code in your popup will display fine but will not work at checkout. - Decide where the code should appear. Most stores show it on a thank-you or final step, after the email field.
How to add a coupon code
- Open your popup in the editor.
- Go to the step where you want the code to appear (usually the last step).
- In the left panel, open the Add Section picker and choose Coupon Code (described as “Discount code with copy button”).
- In the config panel on the right, type your code in the Coupon code field. This is shown to every visitor exactly as you type it.
- Pick a Style: Outlined (dashed border) or Filled (solid background).
- Leave Show copy button checked so shoppers can copy the code with one tap.
- Adjust colors, font size, and border radius if you want (see the options below).
- Publish your changes.
How to send shoppers to your cart or checkout
A code is more useful when you also give people a place to spend it. You have two ways to add a redirect ending.
Option 1: a button (recommended)
- Add a Button section (for example a “Shop Now” button).
- In the button config, set Button action to Open URL.
- A Link URL field appears. Enter
/cart,/checkout, or a collection URL. - Publish. When a shopper clicks the button, they go straight to that page.
Option 2: a loading screen
- Add a Loading Screen step (or add a Loader section on a Loading Screen step).
- In its config, fill in Redirect URL (optional) with the page you want.
- Publish. After the loader’s short timer, the shopper is sent to that page automatically. If you leave the field empty, the loader just moves to the next step instead (as long as its Auto-advance after timeout option is left on, which is the default).
Start from a template
The Coupon Capture Popup template in the gallery is built for exactly this. It captures an email, then shows a coupon, a countdown timer, and a Shop Now button. It is the fastest way to see the pattern in action.
Heads up: in that template the Shop Now button is set to Close popup, not a redirect. If you want it to send shoppers to your cart, change Button action to Open URL and fill in Link URL (see the steps above).
Coupon section options
- Coupon code (required): the exact text shown to every visitor. Placeholder is
SAVE20. - Style: Outlined (dashed border) or Filled (solid background). Default is Outlined.
- Show copy button: on by default. Adds a Copy button next to the code.
- Border color / Background color: default
#FF5600. The panel shows this field as Border color when the style is Outlined (it sets the dashed border) and as Background color when the style is Filled (it sets the box background). It is the same saved setting, so switching styles changes what that color affects. - Text color: default
#303030. Controls the code and copy-button text. - Font size (px): 8 to 48 (default 16).
- Border radius (px): 0 to 40 (default 8). This is the corner rounding of the box.
How the Copy button works
When a shopper taps Copy, the code is copied to their clipboard. The label briefly changes to Copied! for two seconds, then back to Copy. If the copy does not work, it shows Copy failed for two seconds.
A few things to keep in mind:
- Copy only puts the code on the clipboard. It does not apply the discount to the cart for the shopper. They still paste it at checkout.
- Copy needs a secure (HTTPS) connection. On a live store this is the normal case, so it works as expected.
Tips
- The code is the same for everyone. SupaPop shows one static code to every visitor. There is no per-shopper unique code.
- Create the real discount in Shopify. SupaPop only displays text. If the code is not also set up in Shopify Admin > Discounts, it will not reduce the price at checkout. SupaPop cannot detect this mismatch, so double-check the code matches.
- A code is required. You cannot save the coupon section with an empty code.
- Border vs background color. The color setting does double duty. Outlined uses it as the border; Filled uses it as the background. Switch styles and the same color now affects a different part of the box.
- Open-in-new-tab still works. A redirect button only navigates on a normal left-click. Middle-click and Cmd or Ctrl click open a new tab as usual.
FAQ
Does SupaPop create the discount for me? No. It shows the code you type. You create the actual discount in Shopify Admin > Discounts.
Can I give each shopper a unique code? No. The same code is shown to every visitor.
My “Shop Now” button doesn’t go anywhere. Why?
It is probably set to Close popup. Change Button action to Open URL and add a Link URL like /cart or /checkout.
Does the Copy button apply the discount automatically? No. It only copies the code to the clipboard. The shopper pastes it at checkout.