Quantity limits by product let you set a different minimum quantity, maximum quantity, and increment for each product or variant. You can also set a "Total quantity limit" that combines all variants of a product.
This is a good fit when you want to change conditions in detail for each product or variant, or when you want many different limits to be handled by a single checkout rule when enabled.
When you enable quantity limits by product, it consumes 1 checkout rule overall, regardless of the number of products or variants configured. Product quantity rules consume 1 per enabled rule.
For a product with multiple variants, in addition to applying a common limit, you can set a different limit for each variant, or exclude specific variants from the limit.
Example | Details |
|---|---|
Common setting | Set black, white, red, and blue all to a maximum of 5 |
Individual setting | Set black and white to a maximum of 5, and red and blue to a maximum of 6 in increments of 2 |
The "Total quantity limit" combines the eligible variants of the same product to determine the minimum quantity, maximum quantity, and increment. You can also exclude specific variants from the total.
The table below shows an example where only a total maximum of 5 is set, without also using a per-variant quantity limit.
Cart contents | Result with a total maximum of 5 and white excluded |
|---|---|
Black x5 | Allowed |
Black x6 | Not allowed |
Black x2 + Red x3 | Allowed |
Black x3 + Red x3 | Not allowed |
Black x2 + Red x3 + White x1 | Allowed (white is excluded from the total) |
Set different quantity limits for each product or variant
Use both per-variant limits and a total-across-variants limit within a single product
Combine many different quantity limits into a single checkout rule overall when enabled
Quantity limits by product are a good fit for setting detailed conditions for each product or variant, while product quantity rules are a good fit for applying the same condition together across a broad range.
Note: Due to a Shopify limit, you can enable up to a total of 25 checkout rules per store, including checkout rules enabled by other apps. Each enabled product quantity rule counts as 1, and quantity limits by product counts as 1 overall when enabled.
Comparison item | Product Quantity Rule | Quantity Limits by Product |
|---|---|---|
Checkout rules consumed | 1 per enabled rule | 1 overall when enabled |
Setup method | Set eligible items and applicability per rule | Set per product or variant |
Apply the same condition in bulk | Can apply to all products, collections, product tags, and so on | Set per product |
Different limits per variant | Create a rule for each different condition | Can set individually within one product's settings |
Total across all variants of a product | Can set by making the applicability "Product" | Can set with "Total quantity limit" |
Total quantity for a collection or cart | Can set | Cannot set |
Automatic application to new products | Possible depending on how eligible items are specified | Not applied automatically |