Setting Up WooCommerce Cart & Order Restrictions 

Enable Cart and Order Restrictions on Your Store

Viewing All Restriction Rules in a Log

Go to WooCommerce > Order Restriction

Log of Restriction Rules: You can view a complete log of all the order restriction rules applied to your store

Filtering Rules: You can filter rules based on dates, making it easier to manage and review your order restrictions

Bulk Actions: Perform bulk actions on your restriction rules as needed, streamlining your management process

Editing Rules: Choose to edit an existing rule from the list

Creating Multiple Cart & Order Restriction Rules

Adding a New Rule: To create a new cart and order restriction rule, click on “Add New Rule.”

Rule Setting: 

Rule Name: Specify a Rule Name for easy identification.

Choosing the Restriction Type

Select Type: Select the appropriate rule type from the following options:

  • Product Quantity Base
  • Category Quantity Base
  • Total Order Amount Base
  • Total Order Quantity Base
  • Shipping Method
  • Payment Method

If you select the first two options, specify the product and categories to which the rule will apply.

Select Product: Select the products to apply the rule

Select Category: Select the categories to apply the rule

Restricting Orders Based on User Roles

Under “User Option,” you can select the user role and user to which the rule applies. Leaving these fields empty will apply the rule to all user roles and customers.

Select Role: Specify user roles to apply the restriction rule

Select User: Specify individual customers to apply the restriction rule

Restricting Orders Based on Quantity

Minimum Quantity: Set the minimum product quantities for the rule

Maximum Quantity: Set the maximum product quantities for the rule

Range Option: Select a range option:

  • None 
  • Comma Separated
  • Steps

Restricting Orders Based on Duration

Choose between “Reset duration” or “Date Range” to set limitations on the rule based on time.

Reset Duration:

  • Duration: Specify the number of days for which the rule applies to orders

Date Range:

  • Start: Set the start date for the rule 
  • End: Set the end date for the rule 

Leave these fields empty for no date limits.

Displaying Custom Error Restriction Message

Error Message: Create an error message that will be shown on the cart or checkout page when the rule is violated. 

You can use placeholders like {products_name}, {products_max_quantity}, {products_min_quantity}, {range_option}, {use_limit}, and {remaining_limit} to display relevant information.

Specifying Rule Priority

Rule Priority: Set the rule’s priority order to determine how it applies in case multiple rules conflict

Personalizing Notifications

Go to WooCommerce > Settings > Cart and Order Restrictions > General Settings.

Notification Setting: Enable to show all notifications at once on the Cart page

Show Notification on Load (Cart Page): Enable to display notifications when the Cart page loads