Why this happens
Shopify treats the compare-at price as a display field: the struck-through price your theme shows. Checkout doesn’t use it. When a customer applies a code or an automatic discount, the math runs on the current price, so a markdown and a discount add up.
Your cart
Linen shirt
Sand / M
$100.00 $80.00
SUMMER30 (−$10.00)
$70.00
Canvas tote
Natural
$40.00
SUMMER30 (−$12.00)
$28.00
Solo Discount settings
Shopify’s built-in 30% code would charge $84.00.
Step the discount and compare with what Shopify’s built-in code would charge.
The usual workarounds break in common cases:
- Variants. A collection holds products, so one size on sale takes every size of that product out of the promotion.
- Sitewide sales. Moving products in and out of an “eligible” collection is easy to get wrong.
- Markets. An item can be on sale in one market and full price in another, and a collection rule only sees your base prices.
- Wholesale and VIP codes. You want 50% off retail, not 50% off the marked-down price.
- Dropping compare-at prices. It works, but your product pages lose the struck-through price.
Two ways to fix it
There’s no single right answer; it depends on the promotion. Solo Discount has both rules, and you pick one for each discount, in the app’s first setting.
Protection strategy
How should the discount handle variants already on sale?
Discount from the compare-at price
Calculates the discount off the compare-at price, never below the current sale price. Example: compare-at $100, currently $80, 30% off → customer pays $70.
Skip variants already on sale
If a variant’s current price is already below its compare-at, we leave that variant alone. The discount still applies to any other variants at full price.
Discount from the compare-at price
The discount is worked out from the compare-at price. If the item’s sale price is already lower than that, nothing more comes off, so the customer pays the lower of the two and never more than the price on the shelf.
| Item | Compare-at | Price | Target | Pays |
|---|---|---|---|---|
| A | $100.00 | $80.00 | $60.00 | $60.00 |
| B | $50.00 | $40.00 | $30.00 | $30.00 |
| C | $50.00 | $20.00 | $30.00 | $20.00Sale price is lower |
| D | None | $45.00 | $27.00 | $27.00 |
Skip variants already on sale
The discount only touches variants at full price: no compare-at price, or one equal to the price. Variants on sale keep their sale price. It’s usually the cleaner choice for a sitewide promotion, where you don’t want to discount on top of your own markdowns.
Try both rules
One shirt in four sizes, two of them on sale. Switch the rule, change the discount, put another size on sale.
Linen shirt, Sand with SUMMER25
| Size | Price | Pays |
|---|---|---|
| S | $100.00 | $75.0025% off |
| M | $75.0025% off $100.00 | |
| L | $100.00 | $75.0025% off |
| XL | $60.00Sale price is lower | |
| One of each | $285.00 | |
Built-in and Solo, side by side
Same item: compare-at $100, price $80. The customer applies a 20% code.
| Shopify built-in | Solo, from compare-at | Solo, skip sale items | |
|---|---|---|---|
| Counted from | Price, $80 | Compare-at, $100 | Skipped, on sale |
| 20% comes to | $80 − $16 | $80 target, nothing more off | Nothing off |
| Customer pays | $64 | $80 | $80 |
| Off the retail price | 36% | 20% | 20% |
Why it has to run at checkout
Both rules need the prices checkout charges. Theme code, Liquid or JavaScript on the product page, can change what a page shows, but not what checkout charges.
Solo Discount is a Shopify Function. Shopify runs it on its own servers for every cart, with nothing added to your theme. Any storefront that uses Shopify checkout, including Shop Pay and Hydrogen, gets the same result. The trade-off: product and collection pages keep showing your theme’s prices, and the discount appears in the cart and at checkout.
Linen shirt
Sand / M
SUMMER30 (−$10.00)
$80.00$70.00
Canvas tote
Natural
SUMMER30 (−$12.00)
$40.00$28.00
Wool scarf
Grey
$35.00
Subtotal$133.00
Total savings$22.00
A 30% code at checkout. The scarf stays at $35: 30% off its $60 compare-at price would cost more.
Where each rule fits
Wholesale and VIP pricing
50% off retail for customers tagged wholesale or VIP, counted from the compare-at price whether or not the item is on sale. They need to be logged in at checkout.
From the compare-at price, limited to a customer tag
A sitewide promotion
10% off everything without adding 10% to items already on sale. Full-price items get it; sale items keep their markdown.
Skip variants already on sale
Buy six, save 15%
15% off when the cart holds six or more items, each one at the lower of its sale price and 15% off its compare-at price.
From the compare-at price, with a minimum quantity
Markets with regional prices
Each variant is checked at checkout in the customer’s currency, so there is one discount to keep, not one per market.
Either rule
Questions
- Does this work with discount codes and automatic discounts?
- Both. The rule you pick applies the same way however the discount is triggered.
- Does it combine with shipping or other discounts?
- Only if you allow it. Each Solo discount has its own settings for product, order and shipping discounts, all off to start. On Shopify Plus, two product discounts can also apply to the same item through discount tags.
- Will product pages show the discounted price?
- No. The discount is worked out in the cart and at checkout, so product and collection pages keep showing your theme’s price and compare-at price.
- Does it work on Hydrogen or custom storefronts?
- Yes. The function runs at Shopify checkout, so any storefront that uses Shopify checkout, including Shop Pay and Hydrogen, gets the same result.
- Does it support a fixed amount off, or only a percentage?
- Both. A fixed amount comes off each item, or once per order, and from the compare-at price it uses the same floor.
- Is the decision made per product or per variant?
- Per variant. A product with one full-price variant and one on-sale variant gets the discount on the full-price variant only.