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.2Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

WooCommerce Booster Modules

#comment>

#comment>

#comment>#comment>#comment>

Leave a Reply Click here to cancel reply.

#comment>

Comments

31 Comments

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

    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

    #comment>#comment>#comment>Avatar#comment>

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

      Hi Louise,

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

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  2. #comment>

  3. impressusart March 11, 2020 at 1:00 pm#comment>

    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

    #comment>#comment>#comment>Avatar#comment>

  4. #comment>

  5. Kateryna Scheller September 24, 2019 at 2:00 pm#comment>

    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

    #comment>#comment>#comment>Avatar#comment>

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

      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

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  6. #comment>

  7. Jan September 10, 2019 at 7:57 pm#comment>

    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

    #comment>#comment>#comment>Avatar#comment>

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

      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

      #comment>#comment>Avatar#comment>

    • #comment>

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

      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

      #comment>#comment>Avatar#comment>

    • #comment>

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

      Hi Jan,

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

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

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

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

      #comment>#comment>Avatar#comment>

    • #comment>

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

      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

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  8. #comment>

  9. David August 1, 2019 at 6:50 pm#comment>

    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

    #comment>#comment>#comment>Avatar#comment>

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

      Having same question. Following.

      #comment>#comment>Avatar#comment>

    • #comment>

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

      Hi,

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

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

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

      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

      #comment>#comment>Avatar#comment>

    • #comment>

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

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

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  10. #comment>

  11. Mark Sedhom June 22, 2019 at 10:36 am#comment>

    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

    #comment>#comment>#comment>Avatar#comment>

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

      Hi Mark,

      We have added that to our todo list.

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  12. #comment>

  13. Jan-Willem van Soest May 27, 2019 at 5:09 pm#comment>

    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

    #comment>#comment>#comment>Avatar#comment>

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

      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

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  14. #comment>

  15. chris December 1, 2018 at 12:48 am#comment>

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

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

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

      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

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  16. #comment>

  17. Antonius November 8, 2018 at 8:47 am#comment>

    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

    #comment>#comment>#comment>Avatar#comment>

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

      Hi Antonius,

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

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  18. #comment>

  19. Mitch September 27, 2018 at 5:49 pm#comment>

    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

    #comment>#comment>#comment>Avatar#comment>

  20. #comment>

  21. erik July 30, 2018 at 4:11 pm#comment>

    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

    #comment>#comment>#comment>Avatar#comment>

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

      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

      #comment>#comment>Avatar#comment>

    • #comment>

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

      same here, is this resolve yet?

      #comment>#comment>Avatar#comment>

    • #comment>

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

      Hi Jason,

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

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  22. #comment>

  23. Daniel April 17, 2018 at 4:19 am#comment>

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

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  24. #comment>

  25. Stewart Howell November 16, 2017 at 2:39 am#comment>

    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

    #comment>#comment>#comment>Avatar#comment>

  26. #comment>

#comment>#comment>#comment>#comment>

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.

This site uses Akismet to reduce spam. Learn how your comment data is processed.