Discount function · Plan: Basic
How do I price a set of products at a fixed total, like these three items for 25?
Use a product discount rule with the fixed price value type. When all the set's items are in the cart, the rule discounts them so their combined price equals your fixed total, spreading the difference proportionally across the lines. Works on every Shopify plan.
- Function typeDiscount
- Plan neededBasic
- Shopify PlusNot required
- Updated
What the shopper sees
They add the three items as usual. Checkout shows a discount on each line so the three together total exactly 25. Each product stays its own line, which keeps inventory, fulfillment, and returns simple.
How the rule is built
- Add a product discount rule.
- Conditions: the lines that make up the set. Typically a list of variant ids, or a tag such as
starter-set, with a product line count condition so the discount only applies once every item is present. - Value type: fixed price, amount 25.
The Function computes the combined price of the matching lines, subtracts the target, and allocates the difference per line in proportion to price. If the set’s regular total is already below 25, nothing is discounted.
Variations
- Fixed price per unit. “Any item from this collection 9.90 each when you buy 5 or more” uses the fixed price per unit value type with a quantity condition.
- Mixed quantities. For “any 5 for 60” where the count of full packs depends on the quantity in the cart, see fixed-price packs.
- One line at checkout instead of three. If you want the set to appear as one bundle line with one price, use a mix and match bundle (cart transform) instead of a discount.
Limits to know
- Fixed price applies to the lines matched by the rule in one evaluation; it does not multiply by sets automatically. Use variables (Advanced) when the number of sets varies.
- Rounding follows the store’s currency; the last line absorbs any cent difference.