To restrict Shopify products by state or province, combine a product condition with the shopper's delivery province code in a checkout validation. When both conditions match, block the order and tell the shopper which item must be removed or which address must change.

This lets a merchant keep selling other products in the same country while enforcing regional rules for regulated, fragile, perishable, or service-limited items.

Last verified: September 14, 2026. CartBlock shows Shipping province code, Any, Not any, and generic AND/OR nesting. Product, variant, collection, or tag selection was not shown, so the complete product-plus-region workflow remains unverified.

When is a state or province restriction appropriate?

Use a regional product restriction when the same item can be sold in some parts of a country but not others. Examples include:

  • A regulated product that cannot be shipped into selected states.
  • A plant or food item subject to regional entry rules.
  • A fragile item that the available carrier will not deliver to certain provinces.
  • A service, warranty, or installation package limited to supported regions.

Confirm the policy with the appropriate legal, carrier, or operations owner. A checkout rule enforces the list you provide; it does not decide where a product may legally be sold.

Build a state-by-product restriction matrix

Write the policy before opening the rule builder.

Product group Restricted region Reason Shopper correction
Example regulated item State A Sales restriction Remove item or change address
Live plants Province B Carrier exclusion Remove item
Installation service State C No service coverage Choose product-only option

Use stable product, variant, or collection identifiers where possible. Product titles can change and may be translated, so they are a weak long-term basis for a rule.

How to restrict Shopify products by state with CartBlock

CartBlock exposes Shipping province code in its current builder. It also supports AND/OR nesting, but the product side of this combination was not visible in supplied evidence.

1. Create and name the validation

Create a new validation in CartBlock. Use an internal name such as Block collection X in provinces A and B so staff can identify its purpose later.

2. Select the affected products

Before building this combined rule, confirm that your installed CartBlock builder exposes the required product, variant, collection, or tag condition. If it does not, do not use the workflow below; use another verified implementation or contact CartBlock support.

If both condition types are present, choose the narrowest product scope that matches the written policy. Use a collection only when every current and future product in that collection should inherit the restriction.

3. Add the state or province condition

If both condition types are present, select Shipping province code, described as checking the province code in the shipping address, then use Any for restricted codes. Shopify platform availability alone does not prove an app field; this CartBlock label is separately verified.

4. Confirm the condition logic

If both condition types are present, set the intended truth table to: affected product AND restricted province = blocked. An OR condition can accidentally block every shopper in the region or every buyer of the product, regardless of destination.

5. Write the shopper message

Give the shopper a specific correction:

This item cannot be delivered to your selected state. Remove it from the cart or enter an eligible delivery address to continue.

If the restriction concerns one item in a mixed cart, identify it in a way the shopper can recognize.

6. Save and test

If both condition types are present, save the rule and test both sides of every condition. Include allowed products in restricted regions and restricted products in allowed regions.

Regional product-rule test matrix

Cart and address Expected result
Restricted product, restricted state Blocked
Restricted product, allowed state Allowed
Allowed product, restricted state Allowed
Mixed cart, restricted state Blocked with useful item guidance
Restricted variant, another variant Result matches variant scope
Address changed from allowed to restricted Rule reevaluates and blocks
Pickup order Matches the documented pickup policy
Accelerated checkout Same final policy outcome

Shopify validation functions can run on carts and throughout checkout. Test every purchase path that your storefront exposes, including cart drawers and Buy now buttons.

For narrower address policies, learn how to block individual ZIP or postal codes. For country-level catalog restrictions, use the established guide to restrict Shopify products by country.

State and province restriction mistakes to avoid

Applying a country-level rule by accident

A country condition is broader than a province condition. Verify the rule summary before activation and test an allowed state in the same country.

Depending on region names

Names can have abbreviations, alternate spellings, or translations. Prefer Shopify's standardized province code when the app exposes it.

Hiding the affected product

A generic address error leaves shoppers guessing. Name the item or product category and explain whether they can remove it or change the address.

Forgetting catalog changes

If a rule uses a collection, review it when products enter or leave that collection. If it uses individual variants, add new variants to the policy checklist.

Frequently asked questions

Can Shopify restrict a product to certain states?

Yes, with a compatible validation app or another verified Shopify configuration. Confirm that the implementation exposes both product scope and province condition before relying on it.

Is this the same as Shopify Markets?

No. Shopify Markets organizes selling experiences by country or region. A state or province validation applies a narrower purchasing rule within a destination country.

Should I remove the product from the storefront instead?

Hide or exclude the product when shoppers in the region should never encounter it and your storefront can reliably identify their market. Use checkout validation as enforcement when destination address and cart contents determine eligibility.

Keep the regional policy narrow

The safest rule pairs a maintained product scope with standardized province codes and a message that tells shoppers how to proceed. See how CartBlock can enforce purchase rules at checkout and verify the available regional conditions before launch.