User Documentation
What Plugin Does
Plugin limits how many units customer can buy for selected products. Use it when products must ship in fixed packs or exact sample sets.
Create Rule
- Open WooCommerce -> Quantity Rules.
- Start with template or add blank rule.
- Choose rule type:
Multiple: customer must buy in pack multiplesExact Set: customer must choose from fixed allowed quantities
- Set scope with one or more of:
- product IDs
- category IDs
- shipping class IDs
- roles, including
guest
- Save rules.
Import and Export
- Export box shows current rules as JSON
- Import box accepts JSON array or object with
rulesarray - Imported rules are sanitized before save
Customer Experience
- Product page can adjust quantity step and minimum values
- Product page displays short hint text
- Invalid quantities are blocked in:
- add to cart
- cart quantity updates
- cart review
- checkout
- Error notices can include nearby valid quantity suggestions
Tips
- Use lower
prioritynumber for rule that should win first - Use exact sets for sample packs or fixed bundle counts
- Include
guestrole when rule should apply before login
Known Limits
- Plugin does not provide bulk CSV tools
- Plugin does not add per-product edit panels; rule management is centralized
- Plugin keeps stored rules on deactivation and there is no uninstall cleanup flow in repo