Our client needed minimum order value in a WooCommerce cart of £10 for all products. It didn't matter how many products there were in the cart, the minimum total needed to be a minimum of £10 (before delivery).
However, they wanted 2 certain products to ignore this rule.
We're using WooCommerce and have installed a handy plugin (by Vartech) called Minimum Purchase for WooCommerce. There is a free version of the plugin but it's the PRO (paid for) version that we've used in our example.
The Minimum Purchase for WooCommerce plugin helps with minimum order totals but there's a very specific setup you'll need to tackle the problem of ignoring the rule for specific products.
So, here goes...
Needs video adding here: https://www.youtube.com/watch?v=lq4k6Aod770
Install a free version of the plugin Minimum Purchase for WooCommerce, then follow these instructions:
Setup your Minimum Purchase Rules
When you've installed the plugin, you'll get a new menu item called 'Minimum Purchase Rules'
Setup Minimum Purchase Categories
First, go to 'Minimum Purchase Categories' and setup 2 categories
One category will be for all products and the other category will be for products that need an additional rule applied - in this case our products need to ignore the rule when they're sold on their own
Choose 'Add new' from the sub-menu
Give your default Minimum Purchase Rule a name e.g. 'Minimum order on products'
Under 'Select Search Type' choose 'Use Selection Groups' - this allows you to choose the products you want to apply the rule to
Ignore 'Product categories' and choose the first category you added from the 'Minimum Purchase Categories' box. In our case we choose 'Minimum Purchase Category' as this is our default category applied to all products
Next, decide how the rule is applied to the search results
Choose '*All* in the population' - this option looks at all the products in your cart and adds all the quantities and/or price across all relevant products in the cart
And finally, in the 'Quantity or Price minimum amount' choose 'Apply to price'
Enter the minimum cart value in the Minimum Amount field. In our case we choose 10 (£10)
To finish click the blue publish button
Follow all the instructions above but with the following exceptions:
Choose the second category you setup 'Ignore min purchase rule'
In the 'Quantity or Price minimum amount' enter 1 in the 'Minimum amount' field
Click the blue publish button to setup the rule
To get your minimum purchase rules to work, follow the below instructions.
Go to 'Products', select all products, tick all products and choose 'Edit' from the bulk actions dropdown menu. Click 'Apply'
When bulk editing is applied, tick 'Minimum Purchase Rule' and click update. This will apply the minimum purchase rule to all products
Once you've done this, the next thing to do is to add the 'ignore minimum purchase rule' to specific products
Go to the product(s) that you want to apply the ignore minimum purchase rule to
Edit the product
Look for the box labelled 'Minimum Purchase Categories' and tick the category 'Ignore min purchase rule' plus the Minimum Purchase Category'
Click the blue update button and you're done!
You should now have a WooCommerce cart with a minimum purchase applied and the ability to ignore the minimum purchase on certain products.
For making this possible, I want to give 2 huge credits too...
and more specifically Vartech for creating such a brilliant Minimum Purchase for WooCommerce Plugin (thanks Mark).
Any questions, just comment below. Have fun!
P.s. Vartech have amazing support. When I got stuck, Mark jumped on a Skype call to help me out!
To only allow minimum orders for specific user roles, follow the steps above in the same way, then...
Go to Minimum Purchase Rules > The rule you just created. Within the "Cart Search Criteria" section here, go to Membership List by Role and filter by the user role you'd like (if you leave this blank, then the rule will be applied to all users by default.
Sign up for our newsletter.
Stay up to date with latest news, updates and general on-goings.