Shopify Function · Discounts
Take 20% off a product’s compare-at price
Give a variant you choose 20% off its compare-at price. Keep its current price when that is already lower.
How the rule works
-
- When
- The cart contains the selected variant with a compare-at price.
- Then
- Calculate 20% off the compare-at price. Apply a discount only if that would make the item cheaper than its current price.
What shoppers see
- Item on sale
- Canvas tote drops from $20.00 to $19.20.
- The merchandise subtotal goes from $20.00 to $19.20. The shopper saves $0.80.
- Item already below the offer price
- The merchandise subtotal stays at $18.00.
Set it up in your shop
Review who qualifies, which purchases receive the offer and how much the buyer saves. Test a qualifying cart and a cart just outside the offer.
Open the rule as a draft in Mechanic. Test it with your products before publishing.
Customize this Function in Mechanic