Skip to content
Esc

Start typing to search the docs.

On this page
How-to Updated Aug 16, 2026

Maximum collection quantity

Set the maximum number of items a customer can buy from a selected Shopify collection. Choose the collection and enter the maximum quantity. If the cart contains more than that maximum from the selected collection, checkout is blocked.

Applies to
  • All Shopify plans
  • The Shopify collection or collections you select
  • Products that belong to the selected collection
Doesn't apply to
  • One specific product — use Maximum product quantity
  • The total quantity of all products in the cart — use Maximum cart quantity
  • Purchases made in separate orders
Capping a single product instead? Use maximum product quantity
Shopify Collection Max Quantity Setup (Easy Tutorial) — plays here, or watch on YouTube.

Example: if Maximum Quantity is 5, the customer can buy up to 5 items from the selected collection. 5 items are allowed; 6 items are blocked.

Use Maximum collection quantity when you want to limit how many items customers can buy from a group of related products. Example: a limited-edition collection contains several products. If the collection maximum is 5, the customer can choose different products from that collection, but the qualifying quantity cannot go above 5.

Before you start

Before creating the rule, decide:

  • Which Shopify collection the maximum should apply to.
  • The maximum number of items customers can buy from that collection.
  • Whether you are using a manual or automated Shopify collection. In a manual collection, you add products yourself. In an automated collection, Shopify adds matching products automatically based on the collection conditions.

Steps

1. Install Nex Validator

If Nex Validator is not installed yet, install it from the Shopify App Store and approve the required permissions. If it is already installed, skip to the next step.

2. Go to Simple Order Limit → Create Rule.

3. Give the rule a clear title, such as “Maximum 5 collection items.” Then make sure Enable/Disable Limit is turned on. If the rule is disabled, it will not apply to customer orders.

4. Open the Collection tab and select Collection Max Quantity. Enter the Maximum Quantity, then choose the collection or collections the rule should apply to.

Example: if Maximum Quantity is 5, customers can buy up to 5 qualifying items from the selected collection.

5. Add a clear message that tells customers why they cannot continue and what they need to change, then save the rule. For example: “You can add a maximum of 5 items from this collection.” If possible, include the collection name so customers know which items are affected.

Verify it worked

Test the rule in these situations:

  1. Add more than 5 qualifying items from the selected collection. Checkout should be blocked.
  2. Add exactly 5 qualifying items from the selected collection. Checkout should continue.
  3. Mix different products from the selected collection and confirm their qualifying quantities are counted correctly.
  4. Add products that are not in the selected collection. They should not count toward this collection maximum.
  5. If products belong to overlapping collections with rules, test the result and confirm it is what you expect.

Test the exact number too. A maximum of 5 should allow 5 and block 6.

Common setups

GoalExample maximum
Limited-edition collection2 items
Event merchandise collectionYour purchase limit
Clearance collection3–5 items
Limited-stock collectionA quantity that matches your stock policy

Frequently asked

Why cap a collection instead of each product?

It stops the workaround. A per-product cap of 2 across a ten-product range still lets someone take twenty; a collection cap of 2 means two from the whole range.

Does an automated collection work?

Yes, and it is often the point — a tag-driven collection lets you cap a category without maintaining a list.

Does it stop a second order?

No. It caps one cart.

See also: Minimum collection quantity · Maximum product quantity · Maximum cart quantity