How to discount the most expensive item in the cart on Shopify

How to discount the most expensive item in a Shopify cart, including buy 3 pay for 2 with the priciest item free, using buy X get Y or a product discount.

A painted coastline at night with the heading Discount the most expensive item in the cart and the subline Buy 3, the priciest one is free, next to a cart card tagged Higher-priced items first listing a Wool coat struck through from $120.00 to $0.00 with the pill Free · most expensive, a Knit scarf at $35.00 and Leather gloves at $28.00, a $63.00 subtotal and a Check out button.

DiscountOS is a Built for Shopify discount app that runs multiple offers inside a single automatic discount, including market-specific and tiered discounts.


Can you discount the most expensive item in a Shopify cart?

Yes. Which item gets the saving depends on how the discount orders the qualifying items. Shopify’s native Buy X get Y discount decides for you: when the product or collection in Customer gets is the same as in Customer buys, the Shopify Help Center says the discount goes to the lower-priced item the customer chooses. So a native buy 3 pay for 2 on one collection gives away the cheaper item: in the cart below, the gloves rather than the coat. Nothing on that Help Center page moves the saving to the higher-priced item. DiscountOS adds that choice in three discount types. Buy X Get Y has Sort get items for discount, with Higher-priced items first as the default. Product discount has Sort Products for Discount with an item limit. Multi-offer has Limit discounted items and Overall item limit, both with Highest-value items first. Set high to low, each of them gives the saving to the most expensive qualifying item.

Cheapest item free or most expensive item free?

The same cart, set up three ways: a $120 wool coat, a $35 scarf and $28 gloves, all in one collection.

SetupItem discountedShopper pays
Shopify Buy X get Y, buy 2 get 1 free, same collection$28 gloves (lower-priced, per the Help Center)$155
DiscountOS Buy X Get Y, minimum 3, gets 1 free, Higher-priced items first$120 coat$63
DiscountOS Product discount, 25% off, Higher-priced items first, Maximum items 1$120 coat at 25% off$153

Making the priciest item free is the bigger offer: $120 off instead of $28. The break-even guide shows what that does to margin before you launch it.

Which DiscountOS setup should you use?

Your offerDiscountOS typeKey settings
Buy 3, the most expensive is free, again for every 3Buy X Get YMinimum 3 · gets 1 · Free · Maximum uses per order: Unlimited · Higher-priced items first
Buy 3, the most expensive is free, once per orderBuy X Get YSame, with Maximum uses per order: Limited · Maximum number of uses: 1
25% off the most expensive item in a collectionProduct discountPercentage off 25 · Higher-priced items first · Maximum items 1
The most expensive item free once 3 from a collection are in the cart, next to other offersMulti-offerPercentage off 100 · requirement Quantity (sum) of 3 · Limit discounted items: Highest-value items first, 1
A cap on discounted items across every offerMulti-offerOverall item limit: Highest-value items first

How to set up buy 3 pay for 2 with the most expensive item free

  1. Pick Buy X Get Y from Create discount. DiscountOS lists it in the Discounts part of that menu.
  2. Make it Automatic and give it a Title shoppers will read, like “Buy 3, pay for 2”.
  3. Set Customer Buys. Add a rule for Specific collections · is one of · Outerwear, then enter 3 in Minimum quantity of items customer must buy. Outerwear is on both sides of this offer, so the free coat counts toward that 3, and 3 is the whole set.
  4. Point Customer Gets at Outerwear too, with the same collection rule.
  5. Give 1 item away free. That is Quantity of items customer gets at 1 and Discount type on Free.
  6. Set Maximum uses per order. Unlimited gives one free item for every 3 in the cart. Limited with Maximum number of uses set to 1 gives one free item per order.
  7. Leave Sort get items for discount on Higher-priced items first. That is already the default.
The DiscountOS Discount Configuration card on a Buy X Get Y discount: Quantity of items customer gets 1, Discount type Free with a green banner reading Customers will get the items for free, Maximum uses per order set to Limited with Maximum number of uses 1, Sort get items for discount set to Higher-priced items first, and an unticked Add Tiers To This Discount checkbox.
  1. Set combinations, markets and dates, then save.

The shopper adds the three items to the cart, and the free one is the most expensive of them. Field-by-field help lives in the Buy X Get Y docs, and the buy 2 get 1 free guide goes deeper on picking the minimum.

How to take a percentage off the most expensive item

A DiscountOS Product discount can discount one item, the priciest, with no buy-and-get setup.

  1. From Create discount, pick Product Discounts.
  2. Pick Automatic and title it, say “25% off your top pick”.
  3. Add the qualifying items as a rule: Specific collections · is one of · Outerwear. To require a cart size first, add Cart quantity · is greater than or equal to · 3 in the same group with Between conditions on AND. Cart quantity counts every item in the cart.
  4. Set Discount Type to Percentage off and enter the Percentage, for example 25.
  5. Order the items by price, high to low. In Sort Products for Discount, pick Higher-priced items first; this setting decides which qualifying items get the percentage first.
  6. Tick Limit number of items that get discount and enter 1 in Maximum items.
  7. Set combinations, markets and dates, then save.

The Product discount docs document each of these settings.

How to do it inside a Multi-offer discount

A DiscountOS Multi-offer discount holds several offers in one automatic discount. Use it when the most-expensive-item offer runs next to other offers, or needs a requirement measured on one group of items.

  1. Choose Multi-offer Discount in the Create discount menu. You’ll find it under Advanced.
  2. Switch on Product discount in the What does this discount give? section.
  3. Set the Discount. Discount type: Percentage off, Percentage: 100 for a free item, or a lower number.
  4. Name the items in Qualifying items, for example a group called “Outerwear” with Specific collections · is one of · Outerwear.
  5. Add a Requirement. Measure the “Outerwear” group with Quantity (sum) and a value of 3, so the offer starts at 3 items from that group.
  6. Under Applies to, pick the group in Discount these items, then set Limit discounted items to Highest-value items first with a quantity of 1.
  7. Add other offers, set the overlap rule and dates, then save.

To cap discounted items across every offer in the discount, use Overall item limit with Highest-value items first. It overrides the per-offer limits. Every Multi-offer setting has a page in the Multi-offer docs. Packing this offer in with others also saves automatic-discount slots, as the 25-discount slot guide explains.

Tips before you launch

  • Most expensive or cheapest is a margin decision. Higher-priced first is generous; lower-priced first protects margin. Pick on purpose.
  • Test a cart with two items of the same price. When prices tie, check which line the discount lands on.
  • Combinations are Shopify’s call. A tick under Discount can be combined with only tells Shopify the two kinds may stack, and Shopify still picks what applies at checkout.
  • Two product discounts on one item follow Shopify’s plan rule. Per the Shopify Help Center, stacking several product discounts on one line item, say the coat, needs the Shopify Plus plan. That holds for every discount, made in Shopify admin or in an app.

If you would rather charge a set price than give an item away, a fixed-price bundle is the setup for that. To see how DiscountOS sits next to other apps, there is our 2026 roundup of Shopify discount apps.

Questions merchants ask

Can customers get the most expensive product free with a buy 3 pay for 2 discount? Yes, with DiscountOS Buy X Get Y. Point Customer Buys and Customer Gets at the same collection, with a minimum of 3, a reward of 1 item and Free as the discount type, and leave Sort get items for discount on Higher-priced items first. With Maximum uses per order on Unlimited, every set of 3 gives the most expensive remaining item free.

Which item does a Shopify Buy X get Y discount make free? The cheaper one. If one product or collection is on both the buy and the get side, the Shopify Help Center gives the discount to the lower-priced item the shopper picks. Its Buy X get Y page lists no option for discounting the pricier one instead.

How do I take a percentage off the single most expensive item? Use a DiscountOS Product discount. Enter the percentage, choose Higher-priced items first in Sort Products for Discount, then tick Limit number of items that get discount with 1 in Maximum items. Add a Cart quantity or Cart subtotal rule if the cart has to reach a size first.

What is the difference between Limit discounted items and Overall item limit? Both are DiscountOS Multi-offer settings. Limit discounted items sits on one product offer and caps how many items that offer discounts. Overall item limit caps how many items get discounted across the whole cart and overrides the per-offer limits. Both can rank by Highest-value items first.

How much does DiscountOS cost? DiscountOS has one plan, Pro, at $14.90 every 30 days with a 7-day free trial, and Buy X Get Y, Product discount and Multi-offer are included. Setting up a buy 3 pay for 2 and trying it on a test cart costs nothing until you pick the plan. Its App Store listing carries the Built for Shopify badge.

Sources

  • Shopify Help Center, Buy X get Y discounts, read on 26 September 2026: with the same product or collection in Customer buys and Customer gets, the discount goes to the lower-priced item the customer chooses, and customers put every item in the cart themselves.
  • Shopify Help Center, Discount combinations, read on 26 September 2026: a store runs up to 25 active automatic discounts, app-based ones counted, and more than one product discount on a single line item takes the Shopify Plus plan.
  • DiscountOS ‑ Market Discount on the Shopify App Store, read on 26 September 2026, for its Built for Shopify badge.
  • DiscountOS pricing as stated by DiscountOS on 20 October 2026: Pro is the one plan, $14.90 every 30 days with a 7-day free trial, paid through the Shopify invoice, with Buy X Get Y, Product discount, Multi-offer and the rest of the features in it and no order cap.
  • DiscountOS documentation: Buy X Get Y, Product discount, Multi-offer, Conditions.

More from DiscountOS: all discount guides, the blog and free tools for Shopify merchants.