Discount Reveal: show primed codes on page land
The gap this closes
Send someone a discount link — from an ad, an email, or a popup reward — and Shopify quietly stores the code for checkout… and shows nothing on the page. With an empty cart there's not even data for the theme to read. Visitors wonder if their discount worked; some leave to go find out. Discount Reveal makes the discount visible the moment they land.
What visitors see
A small, dismissible pill at the top of the page: SUMMER25 — 25% off · applied at checkout. It appears only when a real, working code is primed — visitors without one never see it, and dismissing it sticks for the visit.
Setup: there isn't any
The app provisions a Shopify Storefront pricing token for your shop automatically (one-time, on your next visit to the app after approving its permissions). From then on, when a visitor lands with a code, the app asks Shopify's own pricing engine what that code is worth — so the number shown is the number charged. Any code works, including brand-new campaign codes and the unique one-time codes your popups mint: nothing to configure, ever.
Honest by design
- Percentage codes only. Fixed-amount codes stay hidden rather than show a misleading percentage.
- Product-aware. A code restricted to certain products only reveals on pages where Shopify actually discounts that product.
- Expired, invalid, or exhausted codes show nothing — the pill can never promise a discount checkout won't honor.
Turning it off
In the theme editor, open the Pop Up & Quiz app embed and untick Discount reveal bar — for example if your theme already displays primed discounts in its own buy box.
For theme developers (optional)
Want your theme to repaint its own prices instead of (or alongside) the pill? The app exposes a tiny contract on every page:
window.CLV_SF_TOKEN+ aclv:sf-tokenevent — the shop's Storefront pricing token, for pricing any primed code against your product via a throwaway Storefront-API cart.- A
clv:rewardevent ({code, pct, exp}) the instant a visitor claims a percentage reward from a popup — plus the same JSON insessionStorage.clv_rewardfor scripts that load later.
Our own storefront's buy box consumes exactly this contract to show discounted prices inline — the pill is simply the zero-code default every store gets.
Questions? hi@customerluv.app — a founder answers every message.