Discountly documentation / Create discounts
Upsell hints
Progress bars in the cart and hints on draft orders that tell shoppers and staff how close an order is to a Discountly discount. Turning them on, which discounts can hint, Show from, your own wording with {remaining}, {product}, {reward} and {code}, unlocked messages, code discounts, and every cart embed setting for the bar.
Upsell hints tell people how close an order is to a discount, and what to add to get it:
- In the cart: a progress bar in the cart drawer and on the cart page, such as Add $12.00 more to get Free shipping. When the cart gets there, the bar can say so: You've unlocked Free shipping!
- On draft orders: a list under Upsell opportunities on the draft order card, for staff, such as Spend $15.00 more to get 10% off the order.
Hints only describe a discount. They don't change what it gives or when it applies: that's still worked out at checkout.
Turning hints on
Hints are opt-in per discount, and the cart bar also needs a switch in your theme.
In the discount:
- Open the discount in Discountly and click Advanced settings (under Details).
- Under Upsell hints, tick In the cart, When the cart qualifies, On draft orders, or any mix.
- Click Done, then Save rule.
In the theme (cart only):
- Go to Online Store → Themes → Customize and open App embeds.
- In Discountly Cart Embed, turn on Show upsell hints.
- Click Save.
If the cart embed isn't on yet, Store setup and theme blocks shows how. Draft order hints need the draft order card on your draft order page instead.
Which discounts can hint
A hint measures one goal the order hasn't reached yet:
| Discount type | What it measures | Example (cart wording) |
|---|---|---|
| Free gift | The minimum spend for the gift | Add $15.00 more to get Free Tote Bag. |
| Volume pricing | The next tier, per product (or across products with mix & match) | Add 3 more Seed Packet to save 15%. |
| Buy X get Y | The Buy quantity, then the next reward | Add 1 more Candle to get 1 free. |
| Order and product discounts | Their minimum purchase requirement | Add $20.00 more to get 10% off your order. |
| Shipping, or any discount's shipping add-on | The shipping minimum | Add $12.00 more to get Free shipping. |
A product discount with no minimum purchase requirement and no shipping add-on can't hint, because adding more can't change it. Its Advanced settings has no Upsell hints group.
A discount only hints when the order could really get it:
- The discount is live and inside its schedule.
- The order has at least one item the discount applies to. A hint never appears for a discount that has nothing to do with the cart.
- The customer qualifies. Discounts limited to customer tags, segments or specific customers only hint to those customers (signed in, in the cart; the draft's customer, on a draft order).
- Only one thing is missing. If a discount needs both a minimum spend and a minimum quantity and the order is short of both, there's no hint, since no single addition fixes it. The same goes for a minimum set to "equal to" an exact amount.
- For a free gift, the gift (or its backup) is in stock, and the shopper hasn't removed the gift from their cart.
- For a volume tier with a fixed price ("$7.00 each"), the product costs more than that price. A tier that wouldn't lower the price isn't promised.
Free gifts and Buy X get Y rewards Discountly adds to the cart never count toward a goal.
Hints in the cart
Settings in the discount
| Setting | Default | What it does |
|---|---|---|
| In the cart | Off | Shows this discount's progress bar in the cart drawer and on the cart page |
| Show from | 50% | How close to the goal the cart must be before the bar appears: "$57 of $75 is 76%." 0 shows it always |
| Hint message (optional) | Blank | Your own wording, up to 150 characters. Blank uses Discountly's wording (see Writing your own message) |
| When the cart qualifies | Off | Shows an unlocked message once the cart reaches the goal. It works without In the cart: "Useful for discounts the cart can't show, like shipping." |
| Unlocked message (optional) | Blank | Up to 150 characters. Blank uses You've unlocked {reward}! |
One bar at a time
The cart shows a single bar. Discountly picks it like this:
- Unlocked messages first. If the cart has reached a goal whose discount has When the cart qualifies on, that message shows, with a full bar.
- Otherwise, the closest hint. Of the discounts with In the cart on, the one the cart is closest to, as long as it's past that discount's Show from.
So an unlocked message replaces the upsell bar while it applies. If you want the bar to keep pushing towards the next goal (the next volume tier, say), leave When the cart qualifies off on the discounts where that matters.
The bar updates when the cart changes: adding, removing or changing a quantity, in the drawer or on the cart page. An empty cart shows no bar.
What "unlocked" means for each type
| Type | Unlocked when |
|---|---|
| Free gift | The cart reaches the gift's minimum spend. Not if both gifts are out of stock, or the shopper removed the gift |
| Volume pricing | Any product (or mix & match group) reaches a tier. Each higher tier is a new milestone |
| Buy X get Y | The cart earns at least one reward |
| Order and product | The minimum purchase requirement is met. Without one, there's nothing to unlock |
| Shipping, or a shipping add-on | The cart reaches the shipping minimum |
For a Buy X get Y discount the message names the discount by its Title, which starts with BOGO -, for example You've unlocked BOGO - Buy 2 Get 1! Write an Unlocked message if you'd rather not show that. Free gifts use the gift's message from the logic block, or Free and the gift's name.
Code discounts
Discounts that use a Discount code can hint too. The shopper can't get the discount without the code, so Discountly adds it:
- Hint: Add $20.00 more to get 10% off your order. Use code SAVE10.
- Unlocked, before the code is entered: You qualify for 10% off your order. Use code SAVE10.
- Unlocked, after the shopper enters the code: You've unlocked 10% off your order!
Once the shopper has entered the code in the cart, the "Use code" reminder goes. Codes are matched without regard to capitals. In your own message, put {code} where you want the code; leave it out and Discountly adds Use code SAVE10. at the end until the code is entered.
Writing your own message
Leave Hint message blank and Discountly words the hint for you, as in the examples above. To write your own, use these placeholders:
| Placeholder | Becomes | Hint message | Unlocked message |
|---|---|---|---|
{remaining} |
What's still needed: an amount such as $12.00, or a number of items such as 3 | ✓ | |
{product} |
The product or collection name, or qualifying items when there isn't one | ✓ | ✓ |
{reward} |
What the shopper gets, such as Free shipping, 15% off, 1 free or 10% off your order | ✓ | ✓ |
{code} |
The discount code. Code discounts only | ✓ | ✓ |
For example, Only {remaining} away from {reward}! shows as Only $12.00 away from Free shipping!
A placeholder that isn't one of these, such as a typo like {reward }, is left in the message exactly as typed, so you'll spot it in the cart.
The bar's look and placement
The rest of the cart bar's settings are in the theme editor, in Discountly Cart Embed under Upsell hints.
Where it shows
| Setting | Default | What it does |
|---|---|---|
| Show upsell hints | Off | Turns the bar on. While it's off, the embed doesn't ask for hints at all |
| Show in cart drawer | On | The bar in the slide-out cart |
| Show on cart page | On | The bar on the /cart page |
| Position in cart | Top of cart | Or Bottom of cart. At the top of a drawer, the bar sits under the drawer's heading and close button, not next to them |
| Custom container selector (advanced) | Blank | A CSS selector for the element to put the bar in. Leave blank to find the cart drawer and cart page automatically |
Discountly finds the cart drawer and cart page on Dawn and other themes built like it. If your theme's cart is built differently and no bar appears, set Custom container selector to the element that holds your cart's items. Show in cart drawer and Show on cart page still apply to it.
If the theme redraws its cart, for example when a shopper changes a quantity, Discountly puts the bar back.
Box and text
| Setting | Default | What it does |
|---|---|---|
| Box background color | #edf2f3 | Clear it for no box |
| Box border color | Blank | Blank for no border |
| Box corner radius | 8px (0 to 24) | |
| Font size | 14px (11 to 22) | |
| Text color | #1a1a1a | |
| {remaining} color | Blank | The amount or quantity still needed. Blank uses the text color |
| {product} color | Blank | The product or collection name |
| {reward} color | Blank | What the shopper gets |
| {code} color | Blank | The discount code |
| Bold {remaining}, {product}, {reward} and {code} | Off |
The highlight colors apply to Discountly's own wording and to your messages alike: whatever fills a placeholder takes its color.
The bar
| Setting | Default | What it does |
|---|---|---|
| Bar color (start) | #3e5a0e | The filled part of the bar |
| Bar color (goal reached) | Blank | Optional. The bar shifts from the start color towards this one as it fills. Blank keeps one color |
| Bar track color | #a3c224 | The unfilled part |
| Bar height | 10px (4 to 16) |
Click Save in the theme editor after changing anything.
For developers
Each time the bar changes, the embed fires a discountify:progress event on document, and keeps the latest answer in window.discountifyProgress. The event's detail has primary (the message shown, or null) and all (every message for the cart, unlocked ones first). Use it to show the same message somewhere else, such as a free-shipping banner in your header.
Hints on draft orders
On a draft order, hints are for staff. They show under Upsell opportunities at the bottom of the draft order card, and are worded for staff, for example:
- Seed Packet has volume pricing at 16, 32 and 64. Add 6 more for the 16+ price (15% off).
- Spend $15.00 more and this customer gets Free Tote Bag.
| Setting | Default | What it does |
|---|---|---|
| On draft orders | Off | "Staff see it on the draft order." |
| Show from | 0% | How close the draft must be: "8 of 16 items is 50%." 0 shows every hint |
The card lists up to five hints, closest first, one per product (a volume discount covering several products can hint each one). A hint goes once the draft gets the discount, except a volume discount's next tier and a Buy X get Y discount's next reward, since those are about doing better than a discount that already applies. If staff override a line's price, the hint counts what the line really charges. Completed drafts show no hints.
There's no custom wording or unlocked message on draft orders.
Troubleshooting
No bar in the cart. Check, in order:
- Show upsell hints is on in the cart embed, the cart embed itself is on, and the theme is saved.
- Show in cart drawer or Show on cart page is on for where you're looking.
- At least one live discount has In the cart (or When the cart qualifies) ticked, and you saved it.
- The cart has an item the discount applies to, and it's past the discount's Show from. Set Show from to 0 while testing.
- You qualify for the discount. If it's limited by tag, segment or to specific customers, sign in as one of them.
- Your theme's cart is found. Turn on Verbose console logging in the cart embed and look in the browser console for
progress: render;containers= 0means set Custom container selector.
The bar shows an unlocked message instead of the next goal. Unlocked messages come first. See One bar at a time.
A free gift hint disappeared. The shopper removed the gift, or it's out of stock. Removed gifts come back, with their hint, through the cart embed's reset link.
My message shows {something}. That placeholder isn't one Discountly knows. Use {remaining}, {product}, {reward} or {code}.
The bar says "qualifying items" instead of a name. The discount applies to something without one name, such as all products or several products picked by hand. Write your own Hint message without {product}.