How to create a category specific quantity rule
To create minimum and maximum quantity rules based on categories, follow these steps:
- Create a new rule or edit an existing one.
- Select the 'Qty on Category' condition.
- Choose the desired condition, such as 'Equal to' or 'Not equal to', and select the category or categories to which the rule will apply.
- Under the 'Action' section, set the minimum and maximum quantity for the selected category or categories.
Screenshot - 1: (Admin: Min/Max qty rule for the specific category)
Example:
Let's say you have a category of products called 'Bras & Tanks' and you want to set a minimum of 10 and a maximum of 20 quantities for all products in this category. To do so, you would follow the above steps.
Now, if a customer tries to purchase less than 10 or more than 20 units of any product in the 'Bras & Tanks' category, the plugin will prevent the sale and display an appropriate error message. This helps ensure that customers purchase the appropriate quantity of the products.
Screenshot - 2: (Front: Specific category's product with min/max quantity restriction)