How to use 'Any' or 'All' conditions for min/max quantity rules
This feature allows you to flexibly apply quantity rules based on whether any or all selected conditions must be satisfied for the rule to take effect.
You can choose between strict enforcement (all conditions must be met) or more lenient enforcement (any condition can trigger the rule). This flexibility gives you full control over how rules are applied across different products, categories, user roles, and more.
How to Set ‘Any’ or ‘All’ Conditions:
- Go to the "Manage Rules" page in the plugin settings and click on the "Add New" button.
- Under the "Configuration" section, set the rule status (active/inactive) and give the rule a name (e.g., "Seasonal Quantity Rule").
- In the "Advanced Rules > Conditions" section, configure the conditions. Here, you will have two options:
- Any: If selected, the rule will apply when any one of the selected conditions is met. This is a more lenient enforcement method.
All: If selected, the rule will apply only when all selected conditions are met. This provides stricter control.
In the "Advanced Rules > Action" section, configure the minimum and maximum quantity limits along with the default input value, step quantity, and input selector.
Save your settings.
Example Use Cases:
1. Wholesale Order Quantity Control (All):
Suppose you want to enforce a strict rule for wholesale customers, requiring them to order a specific minimum quantity based on the following conditions:
- The user role is "Wholesale Buyer."
- The product belongs to the "Wholesale Items" category.
By selecting the "All" option, the rule will apply only when all conditions are satisfied.
2. Seasonal Product Purchase Limit (Any):
During a seasonal sale, you might want to limit the number of items a customer can purchase based on any of the following conditions:
- The product belongs to the "Holiday Specials" category.
- The customer applies a "HOLIDAY2024" coupon.
With "Any" selected, the plugin will adjust the minimum and maximum quantity restrictions for any customer who qualifies for any of these conditions. For example, if they buy from the "Holiday Specials" category or apply the coupon, they will be subject to the specified quantity limits.
By using the Any or All conditions feature, you can precisely control how minimum and maximum quantity limits are enforced across your store. This allows for flexible promotions and strict rules, tailored to different products, user roles, and other key factors.