Home › Forums › Order Minimum/Maximum Amount for WooCommerce › How can I exclude minimum amount if a particular product is added to the cart?
- Support forum for the Order Minimum/Maximum Amount for WooCommerce.
- This topic has 2 replies, 2 voices, and was last updated 2 years, 6 months ago by Tom Anbinder.
- November 17, 2020 at 9:48 pm #92907Tom TruesdaleParticipant
Thank you Tom, been loving the plugin so far. I was curious if there was a way to exclude a singular product from the minimum price rule, but have the rule re-engage if they add other products to their cart. For example, my page has a minimum order of $75 but I added in a $25 charity option that I excluded in the product tab. From what I understand, If someone adds the $25 donation, they can now add other products and bypass the $75 minimum order. Is there any way for the exclusion to apply to that one item, and have the $75 minimum order kick in once they add other products to cart?November 18, 2020 at 10:54 pm #92908Tom AnbinderModeratorPlugin Support
There may be a number of ways to do that with our plugin, but first one that comes to mind – instead of adding your charity product to “Individual Products > Exclude”, you could add all your other products to “Individual Products > Require”. This way the amount rules will be applied only if there is at least one non-charity product in the cart. Or even better, instead of using “Individual Products” section, you could assign all your non-charity products to some category (or tag), and then add it to our “Product Categories > Require” (or “Product Tags > Require”). Hope you get the idea.
Please give it a try and let me know if that’s good enough.November 21, 2020 at 12:59 am #92909Tom AnbinderModeratorPlugin Support
Hi again, Tom,
It looks like I’ve made a mistake, sorry about that. In my previous message, I wrote that “… the amount rules will be applied only if there is at least one non-charity product in the cart…” – this is not correct, and actually the rules will be applied only if all products in the cart will be “non-charity”. Now we’ve just released a new plugin version (v3.3.0), where you will find new “Validate all products” checkbox in “WooCommerce > Settings > Order Min/Max Amount > Products”. It’s enabled by default, but if you disable it, then the plugin will behave as I’ve described previously (i.e. only one product has to be non-charity for rules to be applied).
Please give it a try and let me know what you think.
- You must be logged in to reply to this topic.