Description
WooCommerce Plugin
Minimum/Maximum Quantity Rules
Enforce quantity restrictions on any product. Set minimum 6 units for wholesale. Set maximum 2 items to prevent scalping. Sold in packs of 12 only. Real-time cart validation blocks checkout violations instantly. Perfect for wholesale stores, bulk sales, limited releases, anti-bot protection. Works simple and variable products. Theme inherited. Zero configuration required.
Min/Max Enforcement
Quantity Steps
Cart Validation
Per-Product Rules
The uncontrolled quantity problem
Wholesale distributor requires minimum 12 bottles per order for operational efficiency. Customer adds 3 bottles to cart. Checks out. Order placed. Warehouse cannot fulfill economically. Must contact customer. Delay order. Request additional items. Customer frustrated. Revenue per order too low. Without minimum quantity enforcement, unprofitable orders slip through constantly. This plugin prevents checkout until minimum reached. Maximum limits prevent scalpers buying 500 limited sneakers. Quantity steps ensure products sold in proper pack sizes. Real-time validation. Automatic enforcement. Problem solved.
Minimum Quantity Rules
Set minimum purchase requirements per product. Wholesale items require 6 unit minimum. Bulk products need 12 minimum. Customer cannot checkout with fewer items. Clear error message displayed. Prevents unprofitable small orders.
Maximum Quantity Limits
Prevent scalping and hoarding with maximum limits. Limited sneaker drop capped at 2 pairs per customer. Sample products limited to 1 unit. High-demand items protected from bots. Fair distribution enforced automatically. Anti-scalping protection built-in.
Quantity Step Enforcement
Sell products in specific multiples only. Eggs sold in dozens (step: 12). Bottles sold in 6-packs (step: 6). Customer can only add 6, 12, 18, 24, etc. Invalid quantities blocked. Pack integrity maintained. Proper case quantities enforced.
Real-Time Validation
Cart validation blocks checkout instantly. Customer attempts 1 item with 6 minimum. Checkout button disabled. Clear error message shown. Must adjust quantity. Rules enforced before payment. Prevents invalid orders completely. No manual cleanup needed.
Why no quantity control fails
Wholesale beverage distributor sells cases of craft beer. Each case contains 24 bottles. Operational efficiency requires minimum 2 cases (48 bottles) per order. Picking, packing, shipping costs make smaller orders unprofitable. Standard WooCommerce has no quantity enforcement. Customer orders 12 bottles. Order placed. Warehouse receives it. Picking cost $15. Shipping cost $18. Product cost $24. Total cost $57. Revenue $24. Loss $33 per order. Without minimum quantity rules, hundreds of unprofitable orders slip through monthly. Need to contact each customer. Request additional items. Delay fulfillment. Customer frustration. Operational nightmare. This plugin prevents problem completely. Set minimum 48 bottles. Customer cannot checkout with fewer. Clear error message. Must add more to cart. Only profitable orders allowed. Revenue protected. Warehouse efficient. Scalable business model.
Standard WooCommerce allows any quantity purchase unchecked
Customer can buy 1 wholesale item when minimum is 12. Bot can purchase 1,000 limited sneakers. Products sold individually when must be in packs. No validation. No enforcement. Orders placed. Merchant must manually cancel and refund. Contact customer. Explain minimum requirements. Customer annoyed. Time wasted. Revenue lost. Operational chaos. Manual quantity checking unsustainable at scale. Need automated enforcement.
Manual quantity checking creates delay and customer friction
Merchant reviews each order. Sees 3 items ordered with 6 minimum. Must email customer. “Please add 3 more items to meet minimum.” Customer already paid. Now must place second order. Or request refund. Frustration high. Many abandon. Conversion lost. Process requires constant monitoring. Staff time consumed. Does not scale. Automated prevention needed before checkout.
Min/Max Quantity Rules: Automatic enforcement before checkout
Enable plugin. Set minimum 6 units on wholesale product. Customer adds 2 to cart. Attempts checkout. Error message: “Minimum quantity for Craft Beer Case is 6.” Checkout blocked. Customer adds 4 more. Now 6 total. Checkout allowed. Order placed. Profitable transaction. Zero manual intervention. Set maximum 2 on limited sneakers. Bot attempts 500. Blocked instantly. Fair distribution. Set step 12 on eggs. Customer can only buy 12, 24, 36, 48. Proper case quantities enforced. All rules automatic. All violations prevented. Clean operation. Scalable system.
🍺 Real Example: Wholesale Beverage Distributor
Before: 340 unprofitable orders monthly, $11K monthly loss
Craft beer distributor requires 2-case minimum (48 bottles) for operational profitability. Picking, packing, shipping infrastructure designed for case quantities. Single case orders lose money after fulfillment costs. No quantity enforcement. 340 orders monthly below minimum. Average order 18 bottles. Fulfillment cost per order $42. Revenue per order $36. Loss $6 per order. Monthly loss: 340 × $6 = $2,040. Must email all customers requesting additional items. 80% refuse. Cancel and refund. Time wasted. Actual loss including staff time: $11,000 monthly. Unsustainable. Need automated minimum enforcement.
After: Zero invalid orders, $11K monthly savings, 100% profitable orders
Installed Min/Max Quantity Rules. Set minimum 48 bottles on all wholesale products. Product pages display “Minimum quantity: 48” notice automatically. Customer adds 12 bottles. Checkout button shows error: “Minimum quantity is 48.” Cannot proceed. Must adjust. Customer adds 36 more. Total 48 bottles. Checkout enabled. Order placed. Profitable transaction. All orders now meet minimum. Zero unprofitable orders. Zero manual intervention. Zero customer contact needed. Zero refunds. $11K monthly savings immediately. Staff time freed. Warehouse efficient. Customers understand minimums upfront. Clear expectations. Smooth operation. Scalable growth.
👟 Limited Sneaker Drop Anti-Scalping
Problem: Limited edition sneaker release. 500 pairs available. Bots and scalpers attempt to buy entire stock. One customer buys 200 pairs. Genuine fans get nothing. Brand reputation damaged.
Solution: Set maximum quantity 2 per product. Customer attempts to add 200 pairs. Blocked instantly with error: “Maximum 2 pairs allowed.” Can only purchase 2. Bot defeated. Fair distribution across 250 customers instead of 1 scalper.
Result: Launch successful. Real fans get sneakers. Scalpers thwarted. Social media praise. Brand loyalty increased. Anti-bot protection without complicated systems. Simple maximum rule prevents hoarding completely.
Complete feature set
Minimum quantities, maximum limits, quantity steps, cart total rules, guest enforcement, per-product control, variation support. Everything needed for professional quantity management.
📊 Quantity Rules
• Set minimum quantity
• Set maximum quantity
• Set quantity step/multiples
• Per-product configuration
• Variation-level rules
• Override per SKU
• Independent rule types
• Combine min + max + step
✅ Cart Validation
• Real-time cart checking
• Blocks checkout violations
• Clear error messages
• Must meet requirements
• Cannot proceed invalid
• Updates on quantity change
• Prevents order placement
• 100% enforcement rate
💰 Cart Total Rules
• Minimum cart total
• Maximum cart total
• Global settings available
• Per-role minimums
• Wholesale requirements
• Retail maximums
• Enforced at checkout
• Prevents small orders
👥 User Controls
• Guest user enforcement
• Logged-in user rules
• Role-based minimums
• Per-product override
• Enable/disable guests
• Flexible configuration
• Wholesale vs retail
• Customer tier support
🎨 Product Display
• Show rules on product page
• Quantity info displayed
• Min/max/step visible
• Theme-inherited styling
• Clear customer expectations
• Can be hidden
• Professional appearance
• Zero confusion
⚙️ Technical Features
• PHP 8.2 compatible
• WooCommerce 8.0+ ready
• HPOS compatible
• Simple products supported
• Variable products supported
• Zero dependencies
• Clean uninstall option
• Translation ready
Perfect for
Wholesale & B2B Stores
Require minimum order quantities for profitability. 6-unit minimums. 12-unit minimums. Case quantity requirements. Prevents small unprofitable orders. Enforces business model automatically. Wholesale tier protection. Volume purchasing enforced.
Limited Release Products
Sneaker drops, collectibles, limited editions. Maximum quantity prevents scalpers and bots. Ensures fair distribution. 2-item maximum per customer. Real fans get products. Anti-hoarding protection. Brand reputation maintained through fairness.
Bulk & Pack Products
Eggs sold by dozen. Bottles in 6-packs. Cases of 24. Quantity step enforcement maintains pack integrity. Customer can only buy multiples. Prevents broken cases. Warehouse efficiency. Proper inventory management. Clean fulfillment.
Sample & Promotional Items
Limit samples to 1 per customer. Free promotional items capped. Prevents abuse. Maximum 1 rule enforced automatically. Fair distribution of promotional goods. Protects marketing budget. Customer appreciation without exploitation.
Common use cases
Wholesale: Minimum 12 Units
Set minimum quantity 12 on all wholesale products. Customer adds 5 to cart. Checkout blocked. Error: “Minimum 12 units required.” Customer adjusts to 12. Checkout proceeds. Profitable order ensured. Zero manual intervention.
Limited Sneakers: Maximum 2 Pairs
Limited drop product has maximum 2 set. Bot attempts to add 500 pairs. Plugin blocks after 2. Error shown. Customer can only purchase 2. Fair distribution enforced. Real fans protected. Anti-scalping successful.
Eggs: Sold in Dozens (Step 12)
Quantity step set to 12. Customer can only add 12, 24, 36, 48. Quantity input enforces multiples automatically. Attempts to add 15? Blocked. Must be dozen increments. Case integrity maintained. Warehouse happy.
Samples: Maximum 1 Per Customer
Free sample product set to maximum 1. Customer adds sample. Attempts to add second. Blocked. Message: “Maximum 1 sample allowed.” Fair distribution. Marketing budget protected. Customer appreciation without abuse.
🚀 Setup Process
Step 1: Install and activate (WooCommerce required)
Step 2: WooCommerce → Settings → Min/Max Quantity (optional global settings)
Step 3: Edit product → Inventory tab → Set min/max/step quantities
Step 4: Save product. Rules enforced automatically on product and cart pages.
Step 5: Customer attempts invalid quantity. Blocked. Must adjust. Clean enforcement.
Frequently asked questions
Can I set different rules per product?
Yes. Each product has independent min/max/step settings. Product A requires minimum 6. Product B has maximum 2. Product C sold in steps of 12. Complete per-product flexibility. Variations also support individual rules.
What happens when customer violates rules?
Checkout is blocked. Clear error message displays explaining violation. “Minimum quantity is 6” or “Maximum quantity is 2.” Customer must adjust cart. Cannot proceed to payment. 100% enforcement. No invalid orders possible.
Does this work with variable products?
Yes. Rules can be set per variation. Blue shirt size M has different minimum than red shirt size L. Each variation independent. Parent product can also have global rules inherited by all variations. Full variation support.
Can I combine minimum, maximum, and step rules?
Yes. All three rules work together. Example: minimum 12, maximum 48, step 6. Customer must buy at least 12, no more than 48, and only in multiples of 6 (12, 18, 24, 30, 36, 42, 48). All enforced simultaneously.
Can I set cart total minimums?
Yes. Global minimum cart total setting available. Require $100 minimum cart for checkout. Or $500 minimum for wholesale customers. Cart total rules work alongside product quantity rules. Both enforced together.
Will customers see quantity rules before checkout?
Yes, if enabled. Product pages can display “Minimum: 6 | Maximum: 48 | Sold in multiples of: 6” notice. Theme-inherited styling. Clear expectations upfront. Can be disabled in settings if you prefer validation only at cart/checkout.
Can I enforce rules only for logged-in users?
Yes. Per-product setting allows guest enforcement toggle. Or global setting to enforce/skip guest users. Useful for wholesale (logged-in only) vs retail (anyone). Flexible user-based rules. Role support included for advanced setups.
Is this HPOS compatible?
Yes. Fully compatible with WooCommerce High-Performance Order Storage. Declares compatibility. Works with latest WooCommerce versions. Future-proof architecture. Clean code. Professional development.
Technical requirements
WordPress
6.0 or higher
WooCommerce
8.0 or higher
PHP
8.2 or higher
Compatibility
HPOS & All themes




