# Buy 2 save 10%, buy 3 save 15%, buy 4 save 20%

Each Shopify discount has one value, so this ladder normally takes three separate discounts. With [OneCode: Stackable Discounts](https://apps.shopify.com/rm-combo-discounts), all three tiers go in one automatic discount, or one code. You add three product discounts, at 10%, 15% and 20%, that need at least 2, 3 and 4 items in the cart. Each item gets the best tier the cart reaches, so four items get 20% off, not 10% + 15% + 20% = 45%.

## What the customer gets

With shirts at $25 each:

- One shirt pays $25. No tier starts at one item.
- Two shirts ($50) get 10% off and pay $45.
- Three shirts ($75) get 15% off and pay $63.75.
- Four shirts ($100) get 20% off and pay $80.

Two of the same product count as two items.

![Four $25 shirts with the automatic discount Buy more, save more: $100 becomes $80, plus $8 shipping](/images/checkout-tiers4.png)

![Two $25 shirts with the same discount: $50 becomes $45, plus $8 shipping](/images/checkout-tiers2.png)

![One $25 shirt: no discount, so the subtotal is $25, plus $8 shipping](/images/checkout-tiers1.png)

## Set it up

1. In OneCode, click **Create discount** and choose **Automatic discount**. Enter the **Title** `Buy more, save more`. Customers see the title next to the discounted items. Choose **Discount code** instead if customers should type a code.
2. Click **Add Discount Type**. Leave it as a **Product Discount**, and enter `10` in **Percentage**. Set **Target** to **Specific Collections** and pick the collection, or keep **All Products**.
3. Under that discount type's **Per-Discount Conditions**, click **Add Condition**. Set **Field** to **Cart Quantity**, **Operator** to **Greater than or equal to** and **Value** to `2`.
4. Optional: to keep sale items at their sale price, click **Add sale item rule** and choose **Exclude sale items**.
5. Add a second product discount the same way, with `15` and **Cart Quantity** at least `3`.
6. Add a third, with `20` and **Cart Quantity** at least `4`.
7. Click **Save discount**.

Give every tier the same **Target** and the same sale item rule. Only the percentage and the quantity change. A sale item rule on one tier doesn't carry over to the others.

![OneCode editor for the automatic discount Buy more, save more: three Product Discounts on the Summer Collection at 10%, 15% and 20%, with Cart Quantity at least 2, 3 and 4, and sale items excluded](/images/editor-tiers.png)

## Which items count toward the tier

- **Cart Quantity** counts every item in the cart, including items from other collections and sale items. A customer with one Summer shirt and three candles reaches the 4-item tier, and the shirt gets 20% off.
- **Group Quantity** counts only the items that discount type targets, after any exclusions. Use it when only items from the collection should count, for example "buy 3 Summer items".

With **Cart Quantity** and sale items excluded, a customer with three full-price items and one sale item reaches the 4-item tier. The three full-price items get 20% off, and the sale item stays at its sale price.

To give a fixed amount instead of a percentage, set **Value Type** to **Fixed Amount**. The amount comes off each item, so `5` at 2 or more takes $5 off every qualifying item.

For tiers based on how much the customer spends, see [spend more, save more](/guides/spend-more-save-more.md). For buy one, get one free, see [BOGO](/guides/bogo.md).

OneCode costs $9.90 USD every 30 days after a 7-day free trial, billed by Shopify. [Install it from the Shopify App Store](https://apps.shopify.com/rm-combo-discounts).
