Sale!

Product Quantity for WooCommerce

Rated 5.00 out of 5 based on 1 customer rating
(1 customer review)

Product Quantity for WooCommerce plugin lets you set minimum and maximum product quantities for cart and order in WooCommerce.

Clear

Author: Tom Anbinder SKU: N/A Category: Tags: , Version: 1.5.0; Last updated: 3 weeks ago; Requires WordPress version: 4.4; Tested up to: 5.0

Description

This plugin is a premium version of free "Product Quantity for WooCommerce" plugin.

Product Quantity for WooCommerce plugin lets you set minimum and maximum 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,
  • forcing initial quantity on single product page to either min or max quantity,
  • validating and (optionally) correcting quantities on add to cart button click,
  • setting quantity input style,
  • and more.

Product Quantity Options

Plugin settings are located in “WooCommerce > Settings > Product Quantity”.

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

General Options

Product Quantity for WooCommerce - General Options

Decimal quantities
Save settings after enabling this option, so you could enter decimal quantities in step, min and/or max quantity options.
Default: no
Force initial quantity on single product page
Possible values: Do not force; Force to min quantity; Force to max quantity.
Default: Do not force
"Add to cart" validation
Possible values: Do not validate; Validate and add notices; Validate and auto-correct quantities.
Default: Do not validate
Enable cart notices
Enables/disables customer notices on the cart page.
Default: no
Stop customer from reaching the checkout page
Stops customer from reaching the checkout page on wrong quantities. Customer will be redirected to the cart page.
Default: no
Force cart items minimum quantity
Will force cart items minimum quantities to 1 instead of 0. Ignored if “Minimum quantity” section is enabled.
Default: no
Quantity input style
Ignored if empty. E.g.: width: 100px !important; max-width: 100px !important;.
Default: None

Minimum Quantity Options

Product Quantity for WooCommerce - Minimum Quantity Options - v1.2.1

Minimum quantity
Enables/disables minimum quantity for products.
Default: no
Cart total quantity
This will set minimum total cart quantity. Set to zero to disable.
Default: 0
Cart total 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%.
Per item quantity - All products
This will set minimum per item quantity (for all products). Set to zero to disable.
Default: 0
Per item quantity - Per product
This will add “Product Quantity” meta box to each product’s edit page.
Default: no

Product Quantity for WooCommerce - Per Product - Minimum quantity - v1.2.1

Per item 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%.

Maximum Quantity Options

Product Quantity for WooCommerce - Maximum Quantity Options - v1.2.1

Maximum quantity
Enables/disables maximum quantity for products.
Default: no
Cart total quantity
This will set maximum total cart quantity. Set to zero to disable.
Default: 0
Cart total 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%.
Per item quantity - All products
This will set maximum per item quantity (for all products). Set to zero to disable.
Default: 0
Per item quantity - Per product
This will add “Product Quantity” meta box to each product’s edit page.
Default: no

Product Quantity for WooCommerce - Per Product - Maximum quantity - v1.2.1

Per item 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%.

Quantity Step Options

Product Quantity for WooCommerce - Quantity Step Options

Quantity step
Enables/disables quantity step for products.
Default: no
All products
This will set quantity step for all products. Set to zero to disable.
Default: 0
Per product
This will add “Product Quantity” meta box to each product’s edit page.
Default: no
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%.

Advanced Options

Product Quantity for WooCommerce - Advanced Options - v1.2.1

Force JS check - Quantity step (on change)
Forces JavaScript check for quantity step (on change).
Default: no
Force JS check - Quantity step (periodically)
Forces JavaScript check for quantity step (periodically).
Default: no
Force JS check - Min/max quantity (on change)
Forces JavaScript check for min/max quantity (on change).
Default: no
Force JS check - Min/max quantity (periodically)
Forces JavaScript check for min/max quantity (periodically).
Default: no

Reset Section

Reset settings
Resets section's settings to the default values.
Default: no

Free vs Pro

Free Version Pro Version
Minimum cart total quantity yes yes
Minimum per item quantity – All products yes yes
Minimum per item quantity – Per product no yes
Maximum cart total quantity yes yes
Maximum per item quantity – All products yes yes
Maximum per item quantity – Per product no yes
Quantity step – All products yes yes
Quantity step – Per product no yes
Decimal quantities yes yes
Force initial quantity on single product page yes yes
Cart notices yes yes
Stop customer from accessing checkout on wrong quantities yes yes
Customizable customer messages yes yes
Quantity input style yes yes

Prices & Licenses

Single siteUnlimited sites
1 year $19.99 $14.99 / year $29.99 $19.99 / year
Lifetime $39.99 $49.99

Refunds

We want to ensure that you are 100% happy with your purchase, so if you feel the product(s) you purchased are not the best fit for your requirements and you attempted to resolve issues with product's author, we are offering 30 day money back guarantee refund policy.

1 review for Product Quantity for WooCommerce

  1. Rated 5 out of 5

    rokas

    Excellent, easy to set up and use, just perfect!

Add a review

29 thoughts on "Product Quantity for WooCommerce"

  1. artprojectgroup December 26, 2018 at 3:15 pm #

    I can’t configure a quantity like 0.96 on the steps, why?

    Kind regards.

    Reply

    • Tom Anbinder December 27, 2018 at 10:32 pm #

      If anyone else has similar question – “Decimal quantities” option was added in plugin version 1.3.0.

  2. Adam January 17, 2019 at 12:27 am #

    Can this plug allow you to customize the quantities of a product that a customer can add to their cart? For example, I want a customer to be able to add 1, 2, or 4 of an item, but not 3.

    Reply

    • Tom Anbinder January 17, 2019 at 11:31 pm #

      Hi Adam,

      Unfortunately I don’t think it’s possible at the moment. You could set minimum quantity to 2, step to 2 and maximum quantity to 4, but that would make quantity of 1 invalid. I could try to add this to the plugin, but I’m not sure how would admin set allowed quantities… I mean would listing all valid quantities as comma separated text (I mean by admin) would be good enough, e.g.: 1,2,4? And do you need this on per product basis (i.e. different for each product) or these quantities would be applied to all your shop’s products?

    • Tom Anbinder January 31, 2019 at 8:39 pm #

      Hi,

      We’ve just released new plugin version 1.5.0. After you update, you will find new “Exact Quantity” options section (in “WooCommerce > Settings > Product Quantity”). This should do exactly what you’ve described, i.e. set allowed or disallowed quantities as a comma-separated list, e.g. 3,7,11.

      Please let me know if something is not working as expected.

  3. Laura January 18, 2019 at 2:13 pm #

    Hello…this plugin is working great for what I need it to do on my website…the cart totals are correct and are allowing customers to buy in steps of .5 units….however when you click the Proceed To PayPal button after confirming your cart total is correct…the information being fed to PayPal does NOT include the cost for those incremental units. So while the shopping cart shows 1.5 units in cart and the math is correct on the cart for what they owe…..when they hit the Proceed to PayPal button the information funneling to PayPal is as though there was only 1 unit in the cart. Is there a way to correct this? Thanks so much!

    Reply

    • Tom Anbinder January 20, 2019 at 6:08 pm #

      Hi Laura,

      I’ve just re-checked it on my test server, but unfortunately couldn’t reproduce the issue. After adding 1.5 to the cart, the quantity in PayPal also shows 1.5, so it seems to be working fine here. I even tried to complete all the order to the end and it still shows 1.5 in my PayPal payment receipt. I’m using standard PayPal gateway (in sandbox mode) that comes with WooCommerce. Maybe you could send me the screenshot of the issue? Also – if possible maybe I could login to your server’s admin to check what’s going on? My private email is tom@algoritmika.com

  4. Molnar Gabor January 23, 2019 at 9:04 am #

    Hello,
    Unfortunatelly this plugin is not compatible with the Flatsome theme. When I set decimal quantities 0,1 and I try it out, it will produce 1,100001 –> 1,200002 –> 1,300003 etc..

    Reply

    • Tom Anbinder January 24, 2019 at 12:37 am #

      Hi,

      Will be checking that asap. One question though – do you have any of Force JS check options enabled in plugin’s “Advanced Options” settings section (i.e. at the bottom of the page in “WooCommerce > Settings > Product Quantity”)? If you have – please try temporary disabling them to see if issue is still there.

    • Molnar Gabor January 24, 2019 at 6:55 pm #

      Hi,
      No, I dont.

    • Tom Anbinder January 29, 2019 at 1:25 pm #

      Hi,

      Sorry for a late reply. I’ve just checked and you are correct – Flatsome theme has issues with decimal quantities. The problem is in their custom plus and minus quantity buttons. They added custom JS code to handle it. For now the only “solution” I was able to come up with is to hide Flatsome’s plus and minus quantity buttons by adding custom CSS:

      input[type="button"].button.minus,
      input[type="button"].button.plus {
          display: none !important;
      }

      Ideally if we could bring back standard HTML number input spinners it would be working fine, however I didn’t manage to do it – will be trying further – unfortunately I’m not a big expert in CSS.

    • yournet February 12, 2019 at 7:54 am #

      Hi, we also use Flatsome. At which moment this issue pops up? I havn’t noticed it yet. Even when I use plus and minus to alter quantity everything works fine for me.

      Thank you!

  5. Renzo Carosio January 27, 2019 at 8:40 am #

    Can I use this plugin in variable products ?

    Reply

    • Tom Anbinder January 27, 2019 at 5:16 pm #

      Hi Renzo,

      Yes, plugin is compatible with variable products. I.e. you can set all options (minimum quantity, maximum quantity, quantity step) for each variation separately.

      Hope that helps. Please let me know if you have any questions.

    • Renzo Carosio January 27, 2019 at 6:34 pm #

      Is only available in the full version. I am not going to be able to try it.

    • Tom Anbinder January 27, 2019 at 6:41 pm #

      Unfortunately yes – as all “per product” options are available in Pro only, you won’t be able to test it in free version. However – as there is “30 days no questions asked” refund policy on WPFactory, we will issue a refund if something is not working as expected (or alternatively I could try to fix it if you’d wish).

    • Renzo Carosio January 27, 2019 at 6:49 pm #

      Is not possible to get a 30 day trial version ?

  6. Renzo Carosio January 28, 2019 at 5:39 am #

    I will install it an try it. One more question. We are in the fresh cut flower business and we sale to wholesalers and retailers by the box. There are 4 kind of boxes with different capacities but the price is by the stem. so we can sell 1 HBX that fits 250 stems or 2 HBX with 500 stems or a QBX with 125 stems. Is there a plugin or this plug in handle 2 types of quantities ? So in the cart appears Like this sample:

    Qty Box Type Description Qty Price Total Amount
    1 HBX Color Rose 50 cms 500 $0.25 $125

    Reply

  7. Renzo Carosio January 28, 2019 at 1:42 pm #

    I installed the plug in an I noticed that the minimum quantity doesn’t refresh when you change the variation product from a higher quantity to a variation with a lower quantity. You can try in the product I am testing the plug in.

    Reply

    • Tom Anbinder January 28, 2019 at 1:45 pm #

      Hi Renzo,

      Could you please try enabling “Force JS check” checkboxes in plugin settings (“Advanced Options” subsection at the bottom of settings page).

    • Renzo Carosio January 28, 2019 at 1:53 pm #

      I have them checked and is not refreshing.

    • Renzo January 29, 2019 at 6:12 pm #

      Hi, did you find out what could be the problem ?

    • Tom Anbinder January 29, 2019 at 6:36 pm #

      Hi Renzo,

      Sorry for not replying earlier. Yes, I can see the problem – already fixing this and I’m almost finished. Will get back to you as soon as possible.

    • Renzo January 29, 2019 at 6:38 pm #

      Perfect, Thank you

    • Tom Anbinder January 31, 2019 at 8:53 pm #

      Hi Renzo,

      We’ve just released new plugin version 1.5.0. After you update, please go to plugin settings (in “WooCommerce > Settings > Product Quantity”) and there in “General Options” section you will find new “On variation change (variable products)” option. Please set that to “Reset to min quantity”. Please let me know if it’s not working as expected.

  8. Karolina January 31, 2019 at 9:10 am #

    Hello! I think about buy PRO version.
    Can you tell me whether in the extended version I can set the minimum order quantity for a specific category, but not for individual products? It’s very important for me.

    Reply

    • Tom Anbinder January 31, 2019 at 8:57 pm #

      Hi Karolina,

      Unfortunately this is not possible at the moment, however, this seems like a useful feature – will be adding it in next update.

  9. Sven February 18, 2019 at 1:28 pm #

    Extending Karolinas idea of a per-category-basis I’d also suggest to have both “per item” and “per item and per product” run parallel where “per item” sets the standard quantity multiplier and “per item and per product” the product specific exceptions.

    Instead of editing each single product on changes in my quantity policy, I could then adapt most of the products’ quantities on a “per item” basis in one step and only care about exceptions on a per product quantity editing step. “Per item and per product” might be triggered when the meta box is not left empty or not zero (or both).

    Reply

  10. David Alexander February 18, 2019 at 7:36 pm #

    Does this plugin allow you to set the quantity label on a per product basis?

    I need Quantity to say “Number of Children” but only on 3 or 4 products.

    Reply

Leave a Reply

Changelog

= 1.5.0 - 31/01/2019 =
* Fix - Stop customer from reaching the checkout page - "WC_Cart::get_cart_url is deprecated..." message fixed.
* Dev - "Exact Quantity" section added.
* Dev - General Options - "On variation change (variable products)" option added.
* Dev - Code refactoring (alg-wc-pq-variable.js etc.).

= 1.4.1 - 17/01/2019 =
* Fix - Step check - Min quantity default value changed to 0 (was 1).
* Fix - Admin settings - Per product meta boxes - Step option fixed; checking if max/min sections are enabled.
* Fix - Force minimum quantity - Description fixed.

= 1.4.0 - 14/01/2019 =
* Dev - "Force JS check" options enabled for decimal quantities.
* Dev - "Add to cart validation" option added.
* Dev - "Quantity step message" option added.
* Dev - "Force cart items minimum quantity" option added.
* Dev - Force JS check - Quantity step - Now value is changed to nearest correct value (instead of always higher correct value).
* Dev - Code refactoring.
* Dev - Admin settings restyled and descriptions updated.

= 1.3.0 - 28/12/2018 =
* Dev - "Decimal quantities" option added.
* Dev - "Force initial quantity on single product page" option added.
* Dev - "Quantity input style" option added.
* Dev - Minor admin settings restyling.
* Dev - Code refactoring.

= 1.2.1 - 23/10/2018 =
* Dev - Min/max "Per item quantity" (for all products) moved to free version.
* Dev - Admin settings descriptions updated.

= 1.2.0 - 18/10/2018 =
* Fix - Cart min/max quantities fixed.
* Dev - Advanced Options - "Force JS check" options added.
* Dev - Raw input is now allowed in all "Message" admin options.
* Dev - Code refactoring.
* Dev - Minor admin settings restyling.
* Dev - Plugin URI updated.

= 1.1.0 - 09/11/2017 =
* Fix - Core - Checking if max/min section is enabled, when calculating product's max/min quantity.
* Fix - Admin settings - Per product meta boxes - Checking if max/min section is enabled (not only "Per item quantity on per product basis" checkbox).
* Fix - Core - Maximum order quantity - Upper limit bug fixed (when get_max_purchase_quantity() equals -1).
* Dev - Core - Minimum order quantity - Upper limit (get_max_purchase_quantity()) added.
* Dev - "Quantity Step" section added.

= 1.0.0 - 08/11/2017 =
* Initial Release.

Installation

  • Buy the plugin 🙂
  • Download plugin's zip to your computer (you will receive an email with download link, or you can always download the plugin from your account).
  • Go to Admin Dashboard > Plugins > Add New > Upload Plugin and browse for downloaded zip file.
  • If plugin is successfully installed - you should see it added to the Plugins list.

Updates

To keep WPCodeFactory items up to date, please install WPCodeFactory Helper plugin and enter your site key.