---
title: "Limit how many items get a discount"
description: "Use a quantity limit to discount only the first few items, cheapest or most expensive first, for example \"50% off up to 2 items\"."
url: https://docs.onecodediscounts.com/en/articles/6-limit-how-many-items-get-a-discount
collection: "Discount types"
updated: 2026-11-06
language: en
---

# Limit how many items get a discount

Use a quantity limit to discount only the first few items, cheapest or most expensive first, for example "50% off up to 2 items".

**In short:** On a product discount, click **Add quantity limit** and enter a number. Only that many items get the discount. Choose **Cheapest items first** or **Most expensive items first** to decide which ones.

## Set it up

1.  Open the product discount type and click **Add quantity limit**.
    
2.  Type the maximum number of items in **Quantity Limit**, for example `2`.
    
3.  In **Apply discount to**, choose:
    
    -   **Cheapest items first:** the lowest-priced items get the discount. This is the default.
        
    -   **Most expensive items first:** the highest-priced items get the discount.
        
4.  To remove the limit, click the red trash icon next to it.
    

![A 50% product discount on the Shirts collection with a quantity limit of 2 and Apply discount to set to Cheapest items first](https://staticfiles.us.gleap.ai/p6ae440349b260bc5e19963ea/ZpHNjyY2IVR2VUzTSnqaBIdvwpz8sjYc9CoWVa3JXw1cQU4FNmlrWCAnfsGSiNEbIBLo6sbOkPh.png "A 50% product discount on the Shirts collection with a quantity limit of 2 and Apply discount to set to Cheapest items first")

## Worked example

50% off the Shirts collection, limited to 2 items, cheapest first. A customer buys shirts at $40, $30 and $25:

-   The $25 and $30 shirts get 50% off: $27.50 saved.
    
-   The $40 shirt is full price.
    

The limit counts individual items, not products. Three of the same $25 shirt with a limit of 2 means two are discounted and one is full price.

## Good to know

-   **Apply discount to** only appears when there's a choice to make: when the target is **All Products** or **Specific Collections**, or more than one specific product.
    
-   The limit is per order, for this discount type only.
    
-   Items left out by **Exclude sale items** or **Exclude subscription items** don't count toward the limit.

## Related

- [Product discounts](https://docs.onecodediscounts.com/en/articles/5-product-discounts.md)
- [Sale items and subscription items](https://docs.onecodediscounts.com/en/articles/7-sale-items-and-subscription-items.md)
- [Order discounts](https://docs.onecodediscounts.com/en/articles/8-order-discounts.md)
- [Shipping discounts and free shipping](https://docs.onecodediscounts.com/en/articles/9-shipping-discounts-and-free-shipping.md)
