- Download the .zip file from your WooCommerce account.
- Go to: WordPress Admin > Plugins > Add New and Upload Plugin. With the file you have downloaded, Choose File.
- Install Now and Activate.
More information at Install and Activate Plugins/Extensions.
After activating Cart and Order Restrictions, a new “Order Restrictions” option will appear under the WooCommerce menu in your WordPress Admin panel. Click to access the extension settings.
Creating New Restriction Rules:
↑ Back to topYou can create multiple rules to restrict checkout based on various conditions like minimum order amount, quantity, user roles, product in cart and more.
To create a new rule, click the Add New Rule button, enter a custom rule name and configure the following options:
Six restriction modes/types
↑ Back to topProduct quantity:
Apply restrictions based on individual product quantity. For example, Item-A can be purchased within a specific range or based on specifically set quantities (ex.1,4,6,8).
Category quantity:
You can choose to apply restrictions to entire category or multiple categories. The extension will calculate the aggregate quantity of all products in cart to apply restrictions.
For example, If you are selling products in multiple of X, you can choose to put the restriction on entire category and allow customers to checkout only when the aggregate quantity of all products is the multiple of X. You can also set quantity restriction in a minimum or maximum or add comma-separated custom quantities.
Cart total amount:
Instead of adding limitations on individual products or category, you can restrict based on the entire cart amount. You can set a restriction on the cart total or subtotal.
Cart total quantity:
Along with amount, you can choose to apply restrictions on cart total quantity as well. Disallow purchases when the cart quantity is out the pre-defined range.
Shipping method:
You can choose to hide shipping methods based on users, user roles and cart amounts. You can also set shipping limitations for each shipping method (flat, local, and more).
Select product and category
↑ Back to topWhen applying restrictions based on product or category, you can choose from all available product(s) and categories for restriction.
Select user roles and customers
↑ Back to topYou can apply restrictions to selected customers and user roles. Leave empty to apply to apply customers including guests.
Define Quantity/Amount Restrictions:
↑ Back to topYou will be able to define the quantity or amount restriction depending on the restriction type selected above.
1) Min & Max Range:
Add minimum and/or maximum value and enable checkout only when the amount or quantity falls within the this range. The “Range Option” will allow you to further extend this.
2) Steps based:
You can extend the range restriction by adding steps to allow customers to purchase in multiple of X.
3) Comma separated:
If you want to keep the quantities more specific, you can add custom comma separated values like 1,3,4,7,9,10.
Reset Duration:
↑ Back to topThe duration reset option enables you to add a restriction for specific days. For example, if the reset duration is set at 7 days, and maximum quantity is set to 8, the user will be able to re-purchase 8 quantities of selected products after 7 days. The reset duration option checks the previous order to apply restrictions. You can leave this field empty if you don’t want to reset the duration and include previous orders for restriction.
Date Range:
↑ Back to topYou can add a start and end date for the rule. The rule will remain active within the selected date range only.
Error messages:
↑ Back to topYou can customize the error message for different restriction types by using the provided variables.
General Settings:
↑ Back to topGo to WooCommerce > Settings > Cart and Order Restrictions tab to access the general settings of the extension. From here you can configure the following:
- Notification setting – Enable or disable option to show all restriction messages at once on cart page.
- Show Notification on load – You can choose to display restriction messages when the cart page loads or when the user clicks on proceed to checkout.