Restrict Checkout adds checkout rules to WooCommerce: a minimum order amount or quantity, a maximum order, blocked products or categories, regions you can’t ship to, payment method rules, and conditions for customer roles or purchase history. When an order breaks a rule, customers see your message telling them what to change, and the rules are enforced on the server in the classic checkout and the Checkout block. View the product page.
Quick start
↑ Back to topSet a WooCommerce minimum order amount in five steps:
- Go to WooCommerce > Restrict Checkout and select Add checkout rule.
- Give the rule a title, such as “Minimum order $25”, and set Rule type to Cart amount.
- Tick Cart amount less than and enter 25.
- In Message shown to the customer, enter “Add {remaining_amount} more to check out. Our minimum order is {min_amount}.”
- Select Publish, then use the Simulator tab to check a small cart.

The Get started with Restrict Checkout checklist on the rules screen tracks the setup: create your first rule, write a helpful message, switch a rule on, test a cart in the simulator, and review the settings.
Installation
↑ Back to topTo start using a product from WooCommerce.com, you can use the โAdd to storeโ functionality on the order confirmation page or the My subscriptions section in your account.
- Navigate to My subscriptions.
- Find the Add to store button next to the product youโre planning to install.
- Follow the instructions on the screen, and the product will be automatically added to your store.
Alternative options and more information at:
Managing WooCommerce.com subscriptions.
Requirements
↑ Back to top- WordPress 6.5 or later.
- WooCommerce 8.5 or later.
- PHP 7.4 or later.
The plugin works with the Cart and Checkout blocks, the classic cart and checkout, and High-Performance Order Storage (HPOS). Messages can be translated with WPML String Translation and Polylang, and a wpml-config.xml file is included. Amount limits are converted for other currencies with WPML and WooCommerce Multilingual and Aelia Currency Switcher.
Setup and configuration
↑ Back to topRestrict Checkout has three tabs under WooCommerce > Restrict Checkout: Rules, Simulator, and Settings. Users who can manage WooCommerce (administrators and shop managers) can manage rules.
Checkout rules
↑ Back to topThe rules list shows each rule’s type, what blocks checkout, and its priority. Use the Enabled switch to turn a rule on or off. Only rules that are on are enforced. You get a warning before a rule closes checkout for everyone.

Select Add checkout rule to create one. The editor has these sections.
What should this rule check
↑ Back to top
Rule type decides what the rule checks:
- Cart quantity: The number of items in the cart is below, above, or equal to a limit.
- Cart amount: The cart amount is below, above, or equal to a limit (a minimum or maximum order amount).
- Products in cart: The cart contains selected products.
- Customers & user roles: Block checkout for guests, all logged-in customers, specific roles, or specific customers.
- Product categories: The cart contains products from selected categories.
- Purchase history: New buyers, amount spent, or items bought.
- Region (country, state, postcode): Countries, states, or postcodes.
- Custom conditions (AND / OR): Several conditions combined, including payment and shipping methods and coupons.
Cart quantity and cart amount
↑ Back to top
- Cart items quantity greater than, less than, and equal to: Tick a limit and enter the number. Each enabled limit blocks checkout on its own. For example, “less than 3” sets a minimum of 3 items.

- Cart amount greater than, less than, and equal to: For example, “less than 50” sets a minimum order amount of 50.
- Cart amount means: Subtotal before discounts, excluding tax, Subtotal after coupons, excluding tax, or Order total, including tax and shipping.
Products and categories
↑ Back to top
- Restricted products: The products that block checkout.
- Block only when ALL selected products are in the cart together: Otherwise any one of them blocks.

- Restricted categories: The categories that block checkout.
- Block only when products from ALL selected categories are in the cart together: Otherwise any one category blocks.
- Include subcategories: Products that are only in a child category also match.
Purchase history
↑ Back to top
- Check: Amount spent, New buyer (no paid orders yet), or Items bought.
- Add up all orders (lifetime): When it’s off, only the largest single order is compared.
- Spent greater than, less than, and equal to, or Order quantity greater than, less than, and equal to: The limits.
Completed and processing orders count. Logged-in customers are matched by account, and guests by billing email once they enter it at checkout.
Region
↑ Back to top
Checkout is blocked when the address matches every field you fill in. Leave a field empty to ignore it.
- Countries: One or more countries.
- States / counties: One per line or comma-separated. Use state codes (CA), names (California), or country:code (US:CA).
- Postcodes / ZIP: One per line or comma-separated. Wildcards (902*) and ranges (90210…90299) work like WooCommerce shipping zones.
- Address to check: Shipping address (billing address for carts that do not need shipping), Shipping address only, Billing address only, or Either address (block if billing OR shipping matches).
Custom conditions
↑ Back to top
- Block checkout when: ALL conditions are true (AND) or ANY condition is true (OR).
- Condition: Cart subtotal (before discounts), cart subtotal (after coupons), order total (incl. tax and shipping), cart item quantity, cart weight, products in cart, categories in cart, shipping classes in cart, user role, customer, customer is (a guest or logged in), country, state / county, postcode / ZIP, payment method, shipping method, coupon code, lifetime spend, or number of paid orders.
- Operator: Depending on the condition: is less than, is at most, is greater than, is at least, is equal to, is not equal to, is any of, is none of, includes all of, or is not.
- Country, state and postcode conditions check the: The address to use, as in Region rules.
Select Add condition to add more. Payment method conditions are checked when the customer places the order. Conditions that can’t be known yet, such as an address the customer hasn’t entered, never block.
Who does this rule apply to
↑ Back to top
- Customers: Guests and registered customers, Registered customers only, or Guests only.
- Only these customers and Only these roles: Registered customers are restricted when they match a selected role or are one of the selected customers. With none selected, every registered customer is restricted.
Message and priority
↑ Back to top
- Message shown to the customer: Select a placeholder to insert it: {rule_name}, {cart_total}, {cart_quantity}, {min_amount}, {max_amount}, {remaining_amount}, {min_quantity}, {max_quantity}, {remaining_quantity}, {customer_spent}, {country}, {state}, {postcode}, {products}, {categories}, {payment_method}, and {shipping_method}. {cart_subtotal} also works.
- Priority: Lower numbers come first. All matching rules block checkout; their messages are listed in priority order, or only the first one (see Settings).
Settings
↑ Back to top
- When several rules block: Show every message (priority order) or Show only the highest-priority message.
- Cart notices: Show restrictions in the cart and on the checkout page before the order is placed. Orders are always validated when they’re placed.
- Proceed to checkout button: Hide “Proceed to checkout” in the classic cart while checkout is restricted.
- Delete data on uninstall: Delete all checkout rules and settings when the plugin is deleted. Off by default.
How-to guides
↑ Back to topHow to set a minimum order amount in WooCommerce
↑ Back to top- Create a Cart amount rule and tick Cart amount less than with your minimum.
- Choose what Cart amount means, for example the subtotal before discounts.
- Write a message with {remaining_amount} and {min_amount}, then publish the rule.
Customers see the message in the cart and at checkout, and can’t place the order until they reach the minimum.

How to set a minimum order quantity or maximum order quantity
↑ Back to top- Create a Cart quantity rule.
- Tick Cart items quantity less than for a minimum, or greater than for a maximum, and enter the number.
- Use {min_quantity}, {max_quantity}, or {remaining_quantity} in the message.
How to set a minimum order for one customer role
↑ Back to top- Create a Custom conditions rule with ALL conditions are true (AND).
- Add User role is any of the role, for example Wholesale.
- Add Cart subtotal (before discounts) is less than the minimum, for example 300.
Or use a Cart amount rule and choose the role in Only these roles.
How to block checkout by country, state, or postcode
↑ Back to top- Create a Region (country, state, postcode) rule.
- Choose the Countries, and optionally the States / counties and Postcodes / ZIP.
- Choose the Address to check.
To allow checkout only for some countries, create a Custom conditions rule with Country is none of and select the countries you allow.
How to restrict payment methods
↑ Back to top- Create a Custom conditions rule.
- Add Payment method is any of the method, for example Cash on delivery.
- Combine it with another condition, such as Order total (incl. tax and shipping) is greater than 200.
The order is blocked when the customer chooses that payment method and the other conditions are true. Shipping methods work the same way.
How to find out why checkout is blocked
↑ Back to top- Go to WooCommerce > Restrict Checkout > Simulator.
- Choose a Registered customer or enter a Guest billing email, add products and quantities, coupon codes, the billing and shipping address, and the payment and shipping method.
- Select Check this cart.

Every enabled rule is listed with Blocks or Passes and the reason, together with the message the customer would see. Nothing is saved and no order is created.

Video
↑ Back to topFrequently asked questions
↑ Back to topDoes it work with the Cart and Checkout blocks?
↑ Back to topYes. Rules are enforced through the Store API, the same way WooCommerce validates the cart, so the Checkout block shows the message and refuses the order. The classic checkout is enforced too.
Which address does a region rule check?
↑ Back to topThe shipping address when the cart needs shipping, otherwise the billing address. If that address is empty, the other one is used. You can change this per rule.
Do purchase history rules work for guests?
↑ Back to topYes. Guests are matched to their earlier orders by billing email once they enter it at checkout. Completed and processing orders count.
Which rule wins when several match?
↑ Back to topAll matching rules block checkout. Their messages are shown in priority order, or only the first one if you choose that in Settings.
Can I set a maximum order amount?
↑ Back to topYes. Create a Cart amount rule and tick Cart amount greater than. Use {max_amount} in the message.
Is data deleted when I delete the plugin?
↑ Back to topOnly if you turn on Delete data on uninstall in Settings. It’s off by default.
Troubleshooting
↑ Back to topCheckout is blocked and I don’t know why
↑ Back to topUse the Simulator with the same customer, products, and address. Each rule shows whether it blocks and why.
A rule doesn’t block checkout
↑ Back to top- Check that the rule’s Enabled switch is on and the rule is published, not a draft.
- Check Who does this rule apply to. A rule for registered customers doesn’t apply to guests.
- Conditions that can’t be known yet, such as an address the customer hasn’t entered, never block. Payment method conditions are checked when the order is placed.
Checkout is closed for everyone
↑ Back to topA rule with no conditions that limit it blocks every customer. Switch it off in the rules list, or change who it applies to.
Known limitations
↑ Back to top- In the simulator, amounts use product prices without tax, shipping, or coupon discounts. A rule based on Order total (incl. tax and shipping) can pass in the simulator but block at the real checkout. Test those rules with a real cart.
- In the rules list and the simulator’s reasons, some conditions show internal values, such as “cod” instead of “Cash on delivery”.
- In the condition builder, long condition names are cut off in the select field.
- {cart_subtotal} works in messages but has no insert button.
Developer notes
↑ Back to topAll hooks are filters.
rcw_restriction_message($message, $rule, $vars, $context): The message of one rule.rcw_cart_restrictions($messages, $results, $context): All messages for the current cart.rcw_threshold_amount($amount, $rule): Convert amount limits for other currency switchers.rcw_purchase_history_order_statuses($statuses): Order statuses that count. Default completed and processing.rcw_purchase_history_stats($stats, $user_id, $email): Provide purchase history from another source.rcw_purchase_history_include_guests($include): Whether guests are matched by billing email.rcw_rule_capability($capability): The capability needed to manage rules. Default manage_woocommerce.
Works great with
↑ Back to top- B2B Pricing: role prices and tiers for trade customers, with Restrict Checkout adding rules beyond roles.
- Address Autocomplete for Google Maps: complete, correctly formatted addresses so region rules check the right state and postcode.
- Multistep Product Bundles: build-your-own boxes that help customers reach your minimum order.
- Quote Offer: send large or unusual orders to a quote request instead of checkout.
Support
↑ Back to topNeed help? Contact WooCommerce.com support for Restrict Checkout. Include your WordPress, WooCommerce, and plugin versions and a screenshot of the simulator result.
