WooCommerce Order Min Max Quantities

WooCommerce Order Min/Max Quantities

Set min/max product quantities in WooCommerce order

Description

With WooCommerce Order Min/Max Quantities module you can set minimal and/or maximal item quantities for orders. Quantities can be set for all order (i.e. cart total quantity) or on per item basis.

Minimum Quantity Options

When setting minimum quantity requirements for the order you can require minimal quantity for the whole cart (Cart Total Quantity) and/or minimal quantity for each item in cart (Per Item Quantity). If you don’t need any of these options, just set its value to zero. In this section you can also set messages visible to the customers if minimal quantity requirements are not met.

WooCommerce Order Min Max Quantities - Admin Settings - Minimum Quantity Options

Maximum Quantity Options

Section is similar to the minimum quantity section, but instead maximum order quantity requirements are applied to the cart.

WooCommerce Order Min Max Quantities - Admin Settings - Maximum Quantity Options

Predefined Values in Messages

When setting the messages, you can use predefined values that will be replaced with actual quantities. Those values are:

Cart Total Quantity

Value Replaced with
%min_cart_total_quantity% Minimum required cart total quantity
%max_cart_total_quantity% Maximum required cart total quantity
%cart_total_quantity% Actual cart total quantity

Per Item Quantity

Value Replaced with
%product_title% Current item title
%min_per_item_quantity% Minimum required current item quantity
%max_per_item_quantity% Maximum required current item quantity
%item_quantity% Actual current item quantity

General Options

There are two more general options.

With Enable Cart Notices option you can enable or disable wrong quantity messages on WooCommerce cart page. If notices on cart are disabled, customer will only see notices on the checkout page.

With Stop Customer from Seeing Checkout on Wrong Quantities you can restrict user from viewing the checkout page if order quantity requirements are not met – in this case user will be redirected to the cart page if he tries to access the checkout page. With this option enabled, you probably want to enable cart notices, so customer would have the information on why he is not allowed to get to the checkout page.

WooCommerce Order Min Max Quantities - Admin Settings - General Options

Accessible through:
  • WooCommerce > Settings > Booster > Shipping & Orders > Order Min/Max Quantities
Tested on WooCommerce 4.0.0 and WordPress 5.3.2
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

Comments

31 Comments

  1. wizard247 March 29, 2020 at 2:04 am #

    Hi – I’m currently using this function to force a minimum quantity of 2, however, the site is a Wholesaler and also General Public site, whereas I only want to force the minimum quantity of 2 on my logged in Wholesale Customers whereas the General Public should be able to order a quantity of 1. Is this possible by adding an additional function to this statement by making it applicable to the user role of “wholesale_customer” only?

    Thank you,
    Louise

    Reply to thread

    Avatar
    • RokasJ March 29, 2020 at 8:06 am #

      Hi Louise,

      You can do this using “Modules By User Roles” module in conjunction with “Order Quantities” module.

      Best regards,
      Rokas – Support Team

      Avatar
  2. impressusart March 11, 2020 at 1:00 pm #

    I tried using the step feature for ordering fractions of a pound of products, but it doesn’t register anything for shipping.

    So, for example, I put in a per-lb price for candy with a size and weight, check that shipping methods register when I put it in the cart, everything’s fine.

    Then I set it to increment at .25 (1/4 lb), but when I put any fraction less than 1 whole pound in the cart, no shipping is registered for that partial product. So, it’s like it doesn’t see the product weight/size at all.

    Does the plugin simply not pass shipping weights/sizes at all for stepped quantities less than 1 lb?

    I recognize that figuring out the size might be difficult, but weight should be simple to divide. For size, you could do something simple like allow a specification of what dimension or 2 dimensions to decrease by the step sizing. Or you could possibly even leave the size the same, at least until you figured out something better.

    I’m not sure how people use this, unless everyone who uses it doesn’t do any sort of calculated shipping. I’m not sure it works with flat shipping any better.

    Reply to thread

    Avatar
  3. Kateryna Scheller September 24, 2019 at 2:00 pm #

    Hi
    We are interested in the plus version but I first need to check if it really meets our requirements:
    Some of our products in our shop should only be able to be ordered in a certain quantity –> e.g. red wine: at least 3 bottles need to be ordered

    Is it possible to restrict quantity on product basis? And if yes: does a message occur for the client that there is a minimum quantity that needs to be ordered?

    Thanks in advance and BR

    Reply to thread

    Avatar
    • RokasJ September 24, 2019 at 2:21 pm #

      Hi Kateryna,

      Yes, you can enable minimum (or maximum) order quantity by using another module – “Order Quantities” (https://booster.io/features/woocommerce-order-min-max-quantities) and “Per Item Quantity on Per Product Basis” option enabled.

      A message is shown on the product page if per product quantity or in the cart if global quantity options are enabled. Messages are also customizable.

      Best regards,
      Rokas – Support Team

      Avatar
  4. Jan September 10, 2019 at 7:57 pm #

    Hello,

    Will you update the documentation for decimal quantities? I enabled it but it seems it does nothing.
    It would come really handy to all of us who sell fabrics (eg. buying just 0.5m of fabric)

    thanks for making such an awesome plugin!

    Reply to thread

    Avatar
    • RokasJ September 11, 2019 at 3:52 pm #

      Hi Jan,

      Could you clarify what the issue is?

      After enabling/disabling this option make sure to click save first, this then will reload module settings. When the option is enabled, in module settings you will be able to enter decimal quantities, such as min or max quantity, step size.

      Best regards,
      Rokas – Support Team

      Avatar
    • Jan September 24, 2019 at 8:09 pm #

      Hi,

      thanks for your super fast reply!
      I did save, but still can’t add decimal quantities to the cart:
      https://imgur.com/a/c7T5gA7

      Avatar
    • RokasJ September 25, 2019 at 12:59 pm #

      Hi Jan,

      Be sure to enable “Decimal Quantities” option in “Order Quantities” module settings.

      Best regards,
      Rokas – Support Team

      Avatar
    • Jan September 25, 2019 at 8:18 pm #

      Hi, everything is enabled and saved, I am pretty sure.

      Avatar
    • RokasJ September 26, 2019 at 7:57 am #

      Hi Jan,

      Could you contact us directly via email support@booster.io and attach a screenshot of your “Order Quantities” module settings?

      Best regards,
      Rokas – Support Team

      Avatar
  5. David August 1, 2019 at 6:50 pm #

    Hi! I am developing simple online store with support for b2b and I really like your booster.

    But is there a way how to set minimal quantity per product per user role? I know there is possibility of setting price per user role but quantity setting is only global per user role or per product but not both. Or am I just missing something?

    Thanks a lot!

    Reply to thread

    Avatar
    • Chantal September 27, 2019 at 8:24 am #

      Having same question. Following.

      Avatar
    • RokasJ September 27, 2019 at 3:21 pm #

      Hi,

      Unfortunately there is no such possibility but we have added it to our todo list.

      Best regards,
      Rokas – Support Team

      Avatar
    • Gareth December 5, 2019 at 12:40 pm #

      Hi all,

      I am in the same situation and have found a work-around of sorts.

      I needed a minimum order quantities for b2b customers, but no minimum orders for b2c. The work-around is to use this module for b2b user roles, but disable it using the ‘Modules by User Roles’ module for b2b customers.

      It only works in a situation where one of the user roles doesn’t need a minimum order quantity, but I thought it might help.

      One thing to be aware of though is that you will need to disable the Order Quantities module for shop managers as it will still apply the minimum order quantities to them otherwise, not letting them update orders if the minimum order has not been met.

      Hope that helps

      Avatar
    • wizard247 March 29, 2020 at 2:18 am #

      Thank you Gareth – I’ve applied your solution as I’m in the same boat. Works a treat!

      Avatar
  6. Mark Sedhom June 22, 2019 at 10:36 am #

    Hi Guys,

    Any chance of adding minimum quantities to a product category? I.e. you must purchase a minimum of ”x’ from any particular category?

    Reply to thread

    Avatar
    • RokasJ June 22, 2019 at 11:12 am #

      Hi Mark,

      We have added that to our todo list.

      Best regards,
      Rokas – Support Team

      Avatar
  7. Jan-Willem van Soest May 27, 2019 at 5:09 pm #

    I am interesting in buying booster pro,

    but my question is:
    is it possible to add a minimum order quantity per product category. For example the category: Bicycle spokes. has different length spokes in them.

    What i want is a minimum quantity for this category, But no minimum per length.

    Reply to thread

    Avatar
    • RokasJ May 27, 2019 at 5:11 pm #

      Hi,

      Unfortunately currently it’s only possible to set order quantity either globally or by product but not category yet. We have added that to our to-do list.

      Best regards,
      Rokas – Support Team

      Avatar
  8. chris December 1, 2018 at 12:48 am #

    its possible to control the min. qty by product level?
    thank you

    Reply to thread

    Avatar
    • RokasJ December 1, 2018 at 3:02 pm #

      Hi Chris,

      Yes, that is possible. Simply enable “Per Item Quantity on Per Product Basis” option in the module settings and you will be able to set that in the product edit pages.

      Best regards,
      Rokas – Support Team

      Avatar
  9. Antonius November 8, 2018 at 8:47 am #

    Hi, I’m interested in the min/max order quantities feature, and I’m wondering if the quantity field in product page shows the minimum quantity as default.

    For example, if I set the min qty as 5, the qty field (product page) show 5 as default and cannot be decreased in value.

    Reply to thread

    Avatar
    • RokasJ November 8, 2018 at 1:11 pm #

      Hi Antonius,

      That is correct. It will show 5 by default and will not allow decreasing the value.

      Best regards,
      Rokas – Support Team

      Avatar
  10. Mitch September 27, 2018 at 5:49 pm #

    Hello,

    Pro plugin user. I actually opened a ticket (2361) about 4 weeks ago. You guys are usually much better at response than this.

    I am getting an error based on the following process.

    – Setting Min/Max to ‘1’ globally.
    – Per Item Quantity on Per Product Basis enabled.
    – Setting Product A to ‘-1’ individually.

    Then, with Product A at checkout, error message = “Maximum allowed quantity for (Product) is -1. Your current item quantity is 1.”
    If I set individual Product specific M/M as ‘0’ (eg. use global) checkout proceeds as expected.
    Shouldn’t ‘-1’ set at individual product level override global setting? It seems as though cart is recognizing ‘-1’ as actually ‘negative one’ not as ‘ignore global.’

    Am I doing something wrong here?

    Thanks.

    Reply to thread

    Avatar
  11. erik July 30, 2018 at 4:11 pm #

    It is not working = it is showing nim order quatity on add to cart button, but after pressing add to cart only one product goes into the cart.

    Please help

    thank you

    Reply to thread

    Avatar
    • RokasJ July 30, 2018 at 8:10 pm #

      Hi Erik,

      Are you sure you have enabled the module, option “Minimum Quantity”, and have set the “Per Item Quantity” to something higher than 0, or enabled “Per Item Quantity on Per Product Basis” and have set product option to something higher than 0? If so, can you contact us at support@booster.io?

      Best regards,
      Rokas – Support Team

      Avatar
    • Jason H March 20, 2019 at 7:37 am #

      same here, is this resolve yet?

      Avatar
    • RokasJ March 20, 2019 at 1:49 pm #

      Hi Jason,

      Please contact us directly at support@booster.io. Thank you.

      Best regards,
      Rokas – Support Team

      Avatar
  12. Daniel April 17, 2018 at 4:19 am #

    Hi! Is there a “group quantity” at product level?

    Reply to thread

    Avatar
  13. Stewart Howell November 16, 2017 at 2:39 am #

    Thanks for providing “WooCommerce Order Min/Max Quantities” feature.
    It works but appears to me that it can only be applied globally (store-wide). I would like to enable different min/max values and messages for different products.

    Reply to thread

    Avatar