Description
Product Quantity for WooCommerce plugin lets you manage product quantities for order (i.e. cart) in WooCommerce.
You can set minimum and/or maximum product quantities in three different ways:
- Cart total quantity – will check minimum and/or maximum quantity for all products in cart (i.e. sum of all quantities).
- Per item quantity – will check minimum and/or maximum quantity for each product in cart. This value is applied to all products (i.e. same minimum and/or maximum quantity for each item).
- Per item quantity on per product basis – similar to “Per item quantity”, but lets you set different minimum and/or maximum quantity for every product. Works with variable products (i.e. different quantities can be set for each variation).
Additionally you can control quantity step – for all products or on per product basis.
Product Quantity for WooCommerce plugin also includes these features:
- enabling decimal quantities in WooCommerce,
- replacing standard WooCommerce quantity number input with dropdown,
- setting exact (i.e. fixed) allowed or disallowed quantities (as comma separated list),
- validating and (optionally) correcting quantities on add to cart button click,
- forcing initial quantity on single product page and/or archives to either min or max quantity,
- setting quantity input style,
- customizing messages your customer sees,
- enabling/disabling cart notices,
- optionally stopping customer from reaching the checkout page on wrong quantities,
- adding product quantity info on single product and/or archive pages.
Product Quantity Options
Plugin settings are located in “WooCommerce > Settings > Product Quantity”.
- General
- Minimum Quantity
- Maximum Quantity
- Quantity Step
- Fixed Quantity
- Quantity Dropdown
- Price Display by Quantity
- Quantity Info
- Styling
- Admin
- Advanced
- Product Quantity for WooCommerce
- Enabled/disables the plugin. May help if you want to configure plugin’s settings, before applying it on frontend.
- Default:
yes
- Default:
General Options
- Decimal quantities
- If enabled you will be able to enter decimal quantities in step, min, max etc. quantity options.
- Default:
no
- Default:
- 'Add to cart' validation
- Possible values: Do not validate; Validate and add notices; Validate and auto-correct quantities.
- Default:
Do not validate
- Default:
- 'Add to cart' validation: Step auto-correct
- Ignored unless “Validate and auto-correct quantities” option is selected above. Possible values: Round; Round up; Round down.
- Default:
Round
- Default:
- Cart notices
- Enables/disables customer notices on the cart page.
- Default:
no
- Default:
- Block checkout page
- Stops customer from reaching the checkout page on wrong quantities. Customer will be redirected to the cart page.
- Default:
no
- Default:
Force Quantity Options
- Force initial quantity on single product page
- Possible values: Do not force; Force to min quantity; Force to max quantity.
- Default:
Do not force
- Default:
- Force initial quantity on archives
- Possible values: Do not force; Force to min quantity; Force to max quantity.
- Default:
Do not force
- Default:
- Force minimum quantity
- Will force all minimum quantities to
1
. This includes cart items, grouped products etc. Ignored if “Minimum quantity” section is enabled.- Default:
no
- Default:
Variable Products Options
- Load all variations
- For compatibility with some other plugins, e.g. with “YITH WooCommerce Quick View” plugin.
- Default:
no
- Default:
- On variation change
- Possible values: Do nothing; Reset to min quantity; Reset to max quantity.
- Default:
Do nothing
- Default:
- Sum variations
- Default:
no
- Default:
Minimum Quantity Options
Settings are located in “WooCommerce > Settings > Product Quantity > Minimum Quantity”.
- Minimum quantity
- Enables/disables minimum quantity for products.
- Default:
no
- Default:
- Cart total minimum quantity
- This will set minimum total cart quantity. Set to zero to disable.
- Default:
0
- Default:
- Cart total minimum quantity: Message
- Message to be displayed to customer when minimum cart total quantity is not reached. Replaced values:
%min_cart_total_quantity%
,%cart_total_quantity%
.- Default:
Minimum allowed order quantity is %min_cart_total_quantity%. Your current order quantity is %cart_total_quantity%.
- Default:
- Per item minimum quantity: All products
- This will set minimum per item quantity (for all products). Set to zero to disable.
- Default:
0
- Default:
- Per item minimum quantity: Per product
- This will add “Product Quantity” meta box to each product’s edit page.
- Default:
no
- Default:
- Per item minimum quantity: Message
- Message to be displayed to customer when minimum per item quantity is not reached. Replaced values:
%product_title%
,%min_per_item_quantity%
,%item_quantity%
.- Default:
Minimum allowed quantity for %product_title% is %min_per_item_quantity%. Your current item quantity is %item_quantity%.
- Default:
Maximum Quantity Options
Settings are located in “WooCommerce > Settings > Product Quantity > Maximum Quantity”.
- Maximum quantity
- Enables/disables maximum quantity for products.
- Default:
no
- Default:
- Cart total maximum quantity
- This will set maximum total cart quantity. Set to zero to disable.
- Default:
0
- Default:
- Cart total maximum quantity: Message
- Message to be displayed to customer when maximum cart total quantity is exceeded. Replaced values:
%max_cart_total_quantity%
,%cart_total_quantity%
.- Default:
Maximum allowed order quantity is %max_cart_total_quantity%. Your current order quantity is %cart_total_quantity%.
- Default:
- Per item maximum quantity: All products
- This will set maximum per item quantity (for all products). Set to zero to disable.
- Default:
0
- Default:
- Per item maximum quantity: Per product
- This will add “Product Quantity” meta box to each product’s edit page.
- Default:
no
- Default:
- Per item maximum quantity: Message
- Message to be displayed to customer when maximum per item quantity is exceeded. Replaced values:
%product_title%
,%max_per_item_quantity%
,%item_quantity%
.- Default:
Maximum allowed quantity for %product_title% is %max_per_item_quantity%. Your current item quantity is %item_quantity%.
- Default:
Quantity Step Options
Settings are located in “WooCommerce > Settings > Product Quantity > Quantity Step”.
- Quantity step
- Enables/disables quantity step for products.
- Default:
no
- Default:
- Cart total quantity
- This will set step for total cart quantity. Set to zero to disable.
- Default:
0
- Default:
- Cart total quantity: Message
- Message to be displayed to customer when cart total quantity step is wrong. Replaced values:
%step_cart_total_quantity%
,%cart_total_quantity%
.- Default:
Quantity total cart step is %step_cart_total_quantity%. Your current order quantity is %cart_total_quantity%.
- Default:
- Per item quantity step: All products
- This will set quantity step for all products. Set to zero to disable.
- Default:
0
- Default:
- Per item quantity step: Per product
- This will add “Product Quantity” meta box to each product’s edit page.
- Default:
no
- Default:
- Per item quantity step: Message
- Message to be displayed to customer when quantity step is incorrect. Replaced values:
%product_title%
,%quantity_step%
,%quantity%
.- Default:
Quantity step for %product_title% is %quantity_step%. Your current quantity is %quantity%.
- Default:
Fixed Quantity Options
“Fixed (i.e. Exact) Quantity” settings are located in “WooCommerce > Settings > Product Quantity > Fixed Quantity”.
- Allowed quantity: Enable section
- Enables/disables “Allowed quantity” section.
- Default:
no
- Default:
- Allowed quantity: All products
- Allowed quantities as comma separated list, e.g.:
3,7,9
. You can also use ranges here, e.g.:[10-500|5]
(i.e. from 10 to 500 with step 5). Ignored if empty.- Default: None
- Allowed quantity: Per product
- This will add meta box to each product’s edit page.
- Default:
no
- Default:
- Allowed quantity: Message
- Message to be displayed to customer on wrong allowed quantities. Replaced values:
%product_title%
,%allowed_quantity%
,%quantity%
.- Default:
Allowed quantity for %product_title% is %allowed_quantity%. Your current quantity is %quantity%.
- Default:
- Disallowed quantity: Enable section
- Enables/disables “Disallowed quantity” section.
- Default:
no
- Default:
- Disallowed quantity: All products
- Disallowed quantities as comma separated list, e.g.:
3,7,9
. You can also use ranges here, e.g.:[10-500|5]
(i.e. from 10 to 500 with step 5). Ignored if empty.- Default: None
- Disallowed quantity: Per product
- This will add meta box to each product’s edit page.
- Default:
no
- Default:
- Disallowed quantity: Message
- Message to be displayed to customer on wrong disallowed quantities. Replaced values:
%product_title%
,%disallowed_quantity%
,%quantity%
.- Default:
Disallowed quantity for %product_title% is %disallowed_quantity%. Your current quantity is %quantity%.
- Default:
Quantity Dropdown Options
Settings are located in “WooCommerce > Settings > Product Quantity > Quantity Dropdown”. Will replace standard WooCommerce quantity number input with dropdown. Please note that maximum quantity value must be set for the product (either via “Maximum Quantity” section or e.g. by setting maximum available product stock quantity or with “Max value fallback” option below).
- Quantity as dropdown
- Enables/disables “Quantity as dropdown” section.
- Default:
no
- Default:
- Max value fallback
- Will be used if no maximum quantity is set for the product and always for variable products. Ignored if set to zero.
- Default:
0
- Default:
- Dropdown label template: Singular
- Replaced value:
%qty%
. For example try%qty% item
- Default:
%qty%
- Default:
- Dropdown label template: Plural
- Replaced value:
%qty%
. For example try%qty% items
- Default:
%qty%
- Default:
- Labels per product
- This will add “Product Quantity” meta box to each product’s edit page.
- Default:
no
- Default:
Quantity Dropdown – Frontend
Before | After |
---|---|
![]() | ![]() |
Price Display by Quantity Options
Settings are located in “WooCommerce > Settings > Product Quantity > Price Display by Quantity”. With this section you can display product price for different quantities in real time (i.e. price is automatically updated when customer changes product’s quantity). Please note that this section will only work for simple type products. Please note that this section is not designed to change product prices – if you need to change product’s price depending on quantity in cart, we suggest using our Wholesale Pricing for WooCommerce plugin.
- Price display by quantity
- Enables/disables “Price display by quantity” section.
- Default:
no
- Default:
- Template
- You can use HTML here. Placeholders:
%price%
,%qty%
.- Default:
%price% for %qty% pcs.
- Default:
Quantity Info Options
Settings are located in “WooCommerce > Settings > Product Quantity > Quantity Info”. This section allows you to output product’s quantity info on frontend.
- Single product page
- Adds quantity info on single product page.
- Default:
no
- Default:
- Single product page: Content
- You can use HTML and/or shortcodes here. Available shortcodes:
[alg_wc_pq_min_product_qty]
,[alg_wc_pq_max_product_qty]
,[alg_wc_pq_product_qty_step]
. -
- Default:
<p>[alg_wc_pq_min_product_qty before="Minimum quantity is <strong>" after="</strong><br>"][alg_wc_pq_max_product_qty before="Maximum quantity is <strong>" after="</strong><br>"][alg_wc_pq_product_qty_step before="Step is <strong>" after="</strong><br>"]</p>
- Default:
- Archives
- Adds quantity info on archives.
- Default:
no
- Default:
- Archives: Content
- You can use HTML and/or shortcodes here. Available shortcodes:
[alg_wc_pq_min_product_qty]
,[alg_wc_pq_max_product_qty]
,[alg_wc_pq_product_qty_step]
. -
- Default:
<p>[alg_wc_pq_min_product_qty before="Minimum quantity is <strong>" after="</strong><br>"][alg_wc_pq_max_product_qty before="Maximum quantity is <strong>" after="</strong><br>"][alg_wc_pq_product_qty_step before="Step is <strong>" after="</strong><br>"]</p>
- Default:
Quantity Info Frontend Example
Styling Options
Settings are located in “WooCommerce > Settings > Product Quantity > Styling”.
- Quantity input style
- Ignored if empty. E.g.:
width: 100px !important; max-width: 100px !important;
- Default: None
Admin Options
Settings are located in “WooCommerce > Settings > Product Quantity > Admin”.
- Admin columns
- Will add quantity columns to admin products list.
- Default:
no
- Default:
- Columns
- Leave blank to add all available columns. Possible values: Min Qty; Max Qty; Qty Step.
- Default: None
Advanced Options
Settings are located in “WooCommerce > Settings > Product Quantity > Advanced”.
- JS Check Options: Force on change: Min/max quantity
- Forces JavaScript check for min/max quantity (on change).
- Default:
no
- Default:
- JS Check Options: Force on change: Quantity step
- Forces JavaScript check for quantity step (on change).
- Default:
no
- Default:
- JS Check Options: Force periodically: Min/max quantity
- Forces JavaScript check for min/max quantity (periodically).
- Default:
no
- Default:
- JS Check Options: Force periodically: Quantity step
- Forces JavaScript check for quantity step (periodically).
- Default:
no
- Default:
- JS Check Options: Force periodically: Period (ms)
- Default:
1000
- Default:
- Order Item Meta Options: Save quantity in order item meta
- Default:
no
- Default:
- Order Item Meta Options: Save quantity in order item meta: Meta key
- Default:
_alg_wc_pq_qty
- Default:
- Rounding Options: Round on add to cart
- Makes sense only if “Decimal quantities” option is enabled. Possible values: Do not round; Round; Round up; Round down.
- Default:
Do not round
- Default:
- Rounding Options: Round with JavaScript
- Possible values: Do not round; Round; Round up; Round down.
- Default:
Do not round
- Default:
- Cart Options: Hide 'Update cart' button
- Default:
no
- Default:
Daryl Auclair (verified owner) –
The Product Quantity plugin is the best WooCommerce plugin I have found for customizing minimum and maximum quantities as well as setting step increments. I sell fabric by the yard in my woocommerce store, and I have tried EVERY plugin I could find that would allow me to sell decimal quantities through Woocommerce. There are not many options, and the other ones were very complex and did not provide an easy to use interface for my customers. This plugin on the other hand, the customer doesn’t even know its there, it integrates right in with the WooCommerce cart. Tom the developer keeps adding new features all the time, and best of all, he listens to his customers and provides excellent support when you need it. I highly recommend supporting the developer and purchasing the Pro version of this plugin.
Toby (verified owner) –
Best Quantity Plugin Ever. For sure. It solves problems all other Plugins aren´t able to think about. This is worth every penny. And the best on this Plugin is the awsome support. These guys know WordPress / Woocommerce like no one else and help you with every problem occuring on your very own shop including this plugin. They are super fast and super friendly. I would reccomend them to you! Stop Searching. Buy this Plugin in Pro Version!!!
rokas –
Excellent, easy to set up and use, just perfect!