Set up a WooCommerce minimum order value (whilst ignoring certain products)
Our client needed minimum order value in a WooCommerce cart of £10 for all products. So, however many products were in the cart, the minimum total needed to be a minimum of £10 (before delivery). However, they wanted 2 products to ignore this rule.
The solution – a WooCommerce minimum order value which can ignore certain products
We’re using WooCommerce and have installed a handy plugin 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…
1. Install Minimum Purchase for WooCommerce
Download a free version of the plugin Minimum Purchase for WooCommerce
Install the plugin within the Plugins area of WordPress (instructions on how to install a plugin here)
- 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
2. Add your first (default) Minimum Purchase Rule
- 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 ammount’ 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
3. Add a second Minimum Purchase Rule
- 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
4. Apply your minimum purchase rules to products
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
5. And finally, 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.
Any questions, just comment below. Have fun!