VibeFox Min Max Quantity — Help
Requirements
WordPress: 6.0 or later.
WooCommerce: 7.0 or later, installed and active.
PHP: 8.0 or later.
External services: none.
VibeFox license key: bought on vibefox.net. One key works on one domain.
Installation
1. In WordPress go to Plugins > Add New > Upload Plugin, choose the plugin ZIP file and click Install Now. You can also upload the vfw_minimum_maximum_quantity folder to /wp-content/plugins/ by FTP.
2. Click Activate. WordPress opens VF Min Max Quantity > Settings > License. Paste your VibeFox license key into License key and click Activate. Until the key is active the plugin stays switched off and its menu shows only Settings (see License key).
3. The menu VF Min Max Quantity appears in the admin with All Rules, Global Rules, Cart Rules, Role Rules, Product Groups, Display and Settings. The screens are available to shop managers and administrators.
4. Set the global rules, then product and category rules, cart rules and display options.
How rules combine
Quantity rules apply to each product line: Min, Max, Step, Default and Allowed quantities. For every value the first level that sets it wins:
user role → variation → product → tag → attribute → category (closest first, inherited by sub-categories) → product group → global.
So a product can take its minimum from the category and its step from a group. A step means "sold in groups of N": the quantity must be a multiple of the step, and the minimum and maximum are rounded to multiples of the step (a minimum of 5 with step 6 becomes 6, a maximum of 50 becomes 48). An allowed-quantities list replaces min, max and step.
Cart rules (total items, order amount, different products) are checked in addition to the product rules: on the cart page, at checkout (classic and block) and whenever something is added to the cart.
Configuration
All Rules
VF Min Max Quantity > All Rules shows the number of active rules, rules on products and variations, on categories, tags and attributes, and cart and role rules. The list of all rules has a Rule type filter (Role, Variation, Product, Tag, Attribute, Category, Group, Global, Cart) and Search. Each row has an Active switch, the rule name links to the place where it is edited, and Delete removes it after confirmation. Buttons at the top open Global rules, Cart rules and Settings.
Global Rules
Global rules apply to every product that has no own rule. Leave a field empty for no limit.
Minimum quantity: the minimum quantity of each product in the cart.
Maximum quantity: the maximum quantity of each product in the cart.
Step (sold in groups of): quantities must be a multiple of this value (for example 6 → 6, 12, 18…).
Default quantity: the pre-filled quantity on the product page.
Allowed quantities: a comma-separated list (for example 1, 5, 10, 25). When set, only these quantities can be bought and the other global values are ignored.
Cart Rules
VF Min Max Quantity > Cart Rules > Add rule (Cart / Order Rules). Leave a limit empty for no limit.
Name (for you)
Min items in cart / Max items in cart
Min order amount / Max order amount: in the store currency. Amounts use the cart subtotal before coupons (with tax when the shop shows prices with tax).
Min different products / Max different products
Min amount after discounts: checked against the total after coupons.
User role: Everyone (general rule), one of the WordPress roles of your site, or Guest (Not logged in). A role rule replaces the general rules for that role; a role rule with empty limits exempts that role, for example wholesalers from the minimum order amount.
Products not counted: these products are ignored by this rule (items, amount and different products). Search for products by name.
Rule is active: click Save rule to save.
Role Rules
VF Min Max Quantity > Role Rules (User Role Rules) lists every role of the site and Guest (Not logged in) with Min, Max, Step, Default, Allowed quantities and Active. A value set here wins over product, category and global values for that role, for example wholesalers: minimum 10, multiples of 10. Empty fields fall back to the other levels. Click Save in the row. Save a row with all fields empty to remove its rule.
Product Groups
VF Min Max Quantity > Product Groups > Add group: hand-picked sets of products that share one rule, for example "Bottles" sold in multiples of 6. A product can belong to several groups.
Group name (required), Description, Products, Min quantity, Max quantity, Step (groups of), Default quantity and Group rule is active. Click Save group.
Display
Validation
Validation mode: how the product page reacts to a wrong quantity while the customer types. The server always refuses quantities that break the rules.
Message style on the product page: Below the quantity field (default) or Popup (toast). Cart and checkout always use the WooCommerce notices.
Rule Info & Price
Show rule info: shows "Min · Max · Sold in multiples of" on the product page. Default: on.
Info position: Before the price, After the price, Before the Add to cart form or After the Add to cart form (default).
Show total price: shows "Total: price × quantity" under the quantity field on the product page. Default: off.
Unit label: shown after prices, for example "kg" → 10 € / kg. Leave empty to hide. Per language.
Quantity Dropdown (all default off)
Dropdown on product pages: replaces the quantity field with a list of the valid quantities. Can be overridden per product and per category.
Dropdown in the cart: also uses the dropdown for the quantities on the cart page.
Dropdown in product lists: for themes that show a quantity field on the shop and category pages.
Searchable dropdown: adds a search box, useful for long lists.
Messages
Leave a message empty to use the built-in, translated text (shown as placeholder). Messages: Below minimum, Above maximum, Not a multiple of the step, Not an allowed quantity, Cart: too few items, Cart: too many items, Cart: order amount too low, Cart: order amount too high, Cart: too few different products, Cart: too many different products, Cart: amount after discounts too low, Category / tag: amount too low, Category / tag: amount too high, Category / tag: too few different products, Category / tag: too many different products.
Placeholders: {product_name}, {category_name}, {min}, {max}, {step}, {allowed}, {current_qty}; cart messages: {cart_qty}, {cart_total}, {cart_items}.
Settings
General
Enable quantity rules: default on. Switch off to stop applying every rule without deleting them.
Decimal quantities: allows fractional quantities, for example 0.5 kg with a step of 0.5 in a rule. Default: off. It affects the whole shop: otherwise WooCommerce keeps quantities as whole numbers. The Cart and Checkout blocks do not support decimal quantities; use the classic cart and checkout for them.
Decimal places: the number of decimal places kept for quantities (0–4). Default: 2.
Logging
Enable logging: records rejected quantities, unmet cart rules and rule changes. Default: off.
Log level: Info (also rule changes and unmet cart rules), Warning (rejected quantities; default) or Error (failures only).
Max log entries: older entries are removed automatically. Default: 5000.
Log entries: the log list with Search, Level, From and To filters.
Uninstall & Clear
Delete data on uninstall: see Uninstall. Default: off.
Cleanup buttons, each with counters and a confirmation:
License
The VibeFox license block (see License key).
Status
Your PHP, WordPress and WooCommerce versions compared with the minimum versions, and the active multilingual plugin with the site languages.
Import / Export (on the Display and Settings pages)
Download Export File saves the settings as a JSON file. On another site choose the file and click Import.
Product, category and attribute rules
Product editor: the Quantity Rules tab in Product data.
Product rule: use the values below for this product. They win over tag, attribute, category, group and global rules; user-role rules still win.
Minimum Quantity, Maximum Quantity, Step (groups of), Default Quantity and Allowed Quantities (comma-separated, for example 1,5,10,25; when set, only these quantities can be bought).
Combine Variations: applies min, max and step to the total quantity of all variations of this product in the cart.
Quantity Dropdown: Use category / global setting, Always show a dropdown or Never show a dropdown.
The tab shows which level supplies each value (role rule, variation rule, product rule, tag rule, attribute rule, category rule, group rule or global rule) and the values Currently applied for guests. Each variation has its own Min Quantity, Max Quantity, Step (groups of) and Default Quantity fields.
Categories, tags and attribute values: the add and edit screens of the term have Min, Max, Step (sold in groups of), Default and Allowed quantities for each product of the term. Categories and tags also have cart limits: Min Different Products in Cart, Max Different Products in Cart, Min Amount in Cart and Max Amount in Cart (checked only when the cart contains products of this term), and categories a Quantity Dropdown setting. Leave empty for no rule. Rules of the closest category win over parent categories.
Product list: Bulk Edit and Quick Edit have Min Qty, Max Qty, Step, Default Qty and Allowed fields, and the list has a Qty Rules column.
How it works
In the shop
Quantity fields get the right minimum, maximum, step and default on the product page, in the cart, the mini-cart and the block cart. Add to cart buttons in product lists add the minimum or default quantity. When a variation is chosen, its own limits are applied. While the customer types, a message appears according to Validation mode; the rule info and total price are shown if enabled.
On the server
The server refuses quantities that break the rules, no matter how they are sent: the product form, ?add-to-cart= links, AJAX add to cart (WooCommerce and themes such as Woodmart), the Store API used by the Cart and Checkout blocks, cart updates and the mini-cart. A refused add shows the reason, for example how many are already in the cart. The cart page and both checkouts (classic and block) are blocked until the cart is valid: the block checkout refuses orders that break a rule. The script on the product page only improves the experience; customers can not bypass the limits.
In the Cart block, WooCommerce itself adjusts line quantities to the product limits.
Multilingual sites
Built-in messages are translatable (.pot included, Russian translation). Your own messages and the unit label have language tabs and support qTranslate-XT language tags and WPML / Polylang string translation. With Polylang and WPML, rules of the original product, variations and terms also apply to their translations, and the original and its translation in one cart count as the same product.
Page caching: rules for roles are personal. If you use role rules, do not serve cached product pages to logged-in customers (most cache plugins already skip logged-in users, the cart and the checkout).
License key
VibeFox license key: bought on vibefox.net. One key works on one domain.
The plugin works only with an activated key. Without it the plugin is switched off: its features, shortcodes, blocks, admin pages, scheduled tasks and e-mails do not run, and its menu shows only Settings with the License tab. Your settings and data are kept and come back as soon as a key is activated. Right after you activate the plugin in Plugins, WordPress opens this tab.
Open VF Min Max Quantity > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox Min Max Quantity then shows the masked key, the status Active until with the date and the domain, the buttons Check now, Change key, Remove key and the link Manage licenses and domains in your account.
Messages under the field: The key looks incomplete — copy the whole key from your account. (nothing is sent), Key not found. Check that you copied the whole key from your account., This key belongs to another product. (use the key bought for VibeFox Min Max Quantity) and Domain limit reached (free a slot for this domain in your account, then click Check now). After the site address changes, click Check now.
An expired license keeps the plugin working, but without updates and support. Remove key switches the plugin off on this site; the domain slot is freed only in your vibefox.net account. If the license server cannot be reached, the plugin keeps working on the last known status. When the plugin is deleted, the key and its status are always removed.
Troubleshooting
The plugin menu shows only Settings: the license key is not active. Open VF Min Max Quantity > Settings > License and click Activate (or Check now if a key is already entered); the messages under the field are explained in License key.
A product can not be bought at all: check the global Maximum quantity and Allowed quantities, and the rules on All Rules. The Quantity Rules tab of the product shows which level supplies each value.
The minimum is higher than I set: the minimum and maximum are rounded to multiples of the step (min 5 with step 6 = 6).
Wholesalers must not have the minimum order amount: create a cart rule for their role with empty limits.
Guests see role limits, or the other way round: do not cache product pages for logged-in customers.
Fractional quantities do not work in the block cart: the WooCommerce Store API does not support them; use the classic cart and checkout.
Rules seem not to apply: check Enable quantity rules and the Active switch of the rule. Click Clear rules cache in Uninstall & Clear. Turn on Enable logging to see refused quantities and unmet cart rules.
Uninstall
Deactivating the plugin keeps all data. To remove it, deactivate and delete it on the Plugins page. Rules, groups, the log, settings and product fields are removed only if Delete data on uninstall was on. Otherwise they stay for a later re-install. The key and its status are always removed with the plugin; the domain slot is freed only in your vibefox.net account.
