Shopify merchants sometimes need a product limit that changes by destination. A product may be easy to fulfill locally but expensive, regulated, or capacity-constrained in another country. A storewide quantity cap is too broad for that policy: it affects every shopper, including customers in markets where the restriction is unnecessary.

To set a country-specific quantity limit in Shopify, create a validation that combines a delivery-country condition with a product, variant, or collection quantity condition. Join the conditions with AND, show a message that explains how to correct the cart, and test the boundary with an address in both an affected and unaffected country.

This guide shows how to design that rule without accidentally blocking the whole market.

When to Use a Shopify Quantity Limit by Country

Use a country-based quantity rule when eligible customers can still buy the product, but only up to a defined number of units. Common reasons include:

  • carrier or packaging limits for an international destination;
  • controlled allocations for a limited regional launch;
  • country-specific distributor agreements;
  • additional handling requirements for a product category; or
  • inventory reserved across separate fulfillment regions.

Do not use a quantity rule when the product must never be sold in that country. In that case, exclude the product from the relevant Shopify Markets catalog or create a complete product-and-country restriction. A quantity rule is appropriate when some amount remains eligible.

Choose what the limit counts

Before opening a rule builder, define the counting scope:

Policy Counting scope
No more than 2 units of one SKU Variant quantity
No more than 2 units across all sizes or colors Product quantity across variants
No more than 4 items from a restricted range Collection quantity
No more than 10 physical items in the order Total cart quantity

These policies are not interchangeable. A limit of two per variant could allow two small, two medium, and two large units of the same product. If the actual policy is two units across all variants, test the combined product count.

Also decide what happens at the threshold. If two units are allowed, the invalid state is normally a quantity greater than 2, not greater than or equal to 2.

How to Set Country-Specific Quantity Limits with CartBlock

The CartBlock checkout validation app combines country, catalog, and quantity conditions. Exact labels can change, so compare these steps with the rule builder installed on your store.

1. Write the blocked state

Express the policy as one sentence:

Block checkout when the delivery country is Canada AND the cart contains more than 2 units of Product A across all variants.

Writing the invalid state first makes the correct operators and grouping easier to see.

2. Create and name the validation

Open CartBlock from Shopify admin and create a validation rule. Use a descriptive internal name, such as Canada — Product A maximum 2.

Avoid vague names such as International limit. A precise name is easier to audit when products, countries, or thresholds change.

3. Add the delivery-country condition

Select the delivery or shipping country field and choose the affected country. For a fulfillment policy, the delivery address is usually more relevant than an IP-derived browsing location: a shopper may travel, use a VPN, or send a gift abroad.

If several countries share the same policy, confirm whether the installed rule builder supports a list or whether separate rules will be clearer to maintain.

4. Add the product and quantity conditions

Select the target product, variant, or collection, then add the quantity comparison that represents the invalid cart. For the example above:

  • Delivery country is Canada.
  • Product is Product A.
  • Product quantity is greater than 2.

Confirm whether the selected quantity field counts one variant, the whole product, or all matching collection items.

5. Join the conditions with AND

All parts must be true before checkout is blocked. Using OR could block every Canadian order, or every order containing more than two units, regardless of destination.

Read the rule summary as plain English before saving. It should match the blocked-state sentence exactly.

6. Add a corrective message

A useful message names the limit and the next action:

Orders delivered to Canada can include up to 2 units of Product A. Reduce the quantity to continue.

Avoid exposing internal policy notes. Tell the customer only what they need to change.

7. Save and activate the rule

Save the validation, reopen it, and verify the target country, product scope, operator, threshold, AND grouping, message, and enabled status.

Test the rule before launch

Use a product and address combination that will reach the intended checkout. Test at least:

  1. One unit below the limit in the affected country — allowed.
  2. Exactly the maximum in the affected country — allowed.
  3. One unit above the limit in the affected country — blocked.
  4. One unit above the limit in an unaffected country — allowed.
  5. Several variants whose combined quantity exceeds the limit — behavior matches the written scope.
  6. A cart without the targeted product — allowed.
  7. Discounted and accelerated checkout paths used by the store — same enforcement result.

If the rule uses a delivery address, test changing the country after the error appears. The validation should clear when the cart becomes eligible.

Frequently asked questions

Can Shopify set a different quantity limit for every country natively?

Shopify provides native storewide and B2B quantity controls, but a retail rule that combines a delivery country with a selected product quantity generally needs a conditional validation app such as CartBlock.

Should I use Shopify Markets instead?

Use Shopify Markets catalog availability when the product should be unavailable in a market. Use a country-and-quantity validation when shoppers in that country may still buy up to a defined limit.

Can the limit apply across product variants?

It can if the selected CartBlock condition counts at the product level. Verify the scope in the installed rule builder and test a mixed-variant cart.

Does a country rule use the shopper’s IP address?

For a fulfillment restriction, configure the documented delivery-country field. Do not assume the browsing location and final delivery address are the same.

Enforce the narrowest rule that fits the policy

A reliable country-specific quantity limit combines the correct delivery country, product scope, comparison operator, and AND logic. Pair it with a message that tells the shopper exactly how to proceed, then verify both affected and unaffected destinations.

Check CartBlock current conditions and plan eligibility, then test the country-based product limit before launch.

---