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.4.1; Last updated: 6 days 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

7 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.

      Reply

  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?

      Reply

  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

      Reply

  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

Leave a Reply

Changelog

= 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.