Create product tables with WooCommerce minimum & maximum quantities

November 16, 2020

'We're pleased to announce that our top selling WooCommerce Product Table and WooCommerce Quick View Pro plugins work with several minimum and maximum quantity plugins, plus a default quantity plugin. These allow you to control how many products customers can purchase from your product tables.

You can use product tables and quick view with any of the following plugins:

WooCommerce maximum quantity table plugin
Example of a product table with maximum quantities in action

See it in action on our demo page.

Whichever plugin you choose, you can use it with WooCommerce Product Table to list products in a filterable table and limit the quantity that customers can add to the cart. You can also use WooCommerce Quick View Pro to add quick view links to your store, making it easy for customers to learn more and buy without visiting the single product page.

What's the difference between min/max and default quantity plugins?

A minimum/maximum quantity plugin physically restricts the number of each product that customers can buy. Some add restrictions to the overall number of products in the cart. Others have more fine-grained control, such as letting you restrict the number of products from a specific category that can be purchased.

In contrast, a default quantity plugin changes the initial quantity value that appears in the quantity picker. The customer can then override the starting quantity with whichever quantity they wish to order. A default quantity is a starting point, rather than a rule that the customer must follow.

You can use min/max quantity plugins with a default quantity plugin. They both affect product quantities in different ways, so it's a good way to get more fine-grained control.

In this article, I'll tell you about how to use each type of plugin within your product tables and quick view lightboxes.

What is WooCommerce Product Table?

WooCommerce Product Table order form

WooCommerce Product Table is a plugin created by ourselves at Barn2. It creates a flexible tabular layout for your WooCommerce products. You can choose which columns to display, add filters to the table, and much more.

Table layouts can increase conversions on many types of WooCommerce store. It's particularly popular for bulk order forms, wholesale stores, restaurant order systems, build your own product systems, and large product catalogs.

Overall, it's ideal for any e-commerce website where you want customers to be able to find products quickly and view more products per page. It's also an easy way to list products with extra product data, without having to create custom layouts.

WooCommerce Product Table
Add the minimum and maximum quantities feature to your store today!

What is WooCommerce Quick View Pro?

WooCommerce Quick View Pro is another Barn2 plugin. It adds quick view buttons or links to your shop and product category pages. Customers can use these to view extra images and information about each product. They can also select variations and add to the cart straight from the quick view lightbox.

WooCommerce Quick View
The quick and easy way for customers to explore and buy your products.

Quantity plugin #1 - WooCommerce Default Quantity

WooCommerce Default Product Quantity

WooCommerce Default Quantity is the only plugin which lets you change the starting quantity value that appears in the quantity box on product pages.

The default quantity in WooCommerce itself is 1, but this doesn't meet everyone's needs. The most common use case is to change the default quantity to zero, so that the customer can then choose their required quantity. You can also change it to a higher number, as a subtle way of encouraging customers to buy bigger quantities without actually controlling how many they can order.

WooCommerce Default Quantity
The easy and flexible way to change the default product quantities in your store.

How it works with WooCommerce Product Table and WooCommerce Quick View

When you use WooCommerce Default Quantity with WooCommerce Product Table and/or WooCommerce Quick View Pro, the correct initial quantity appears in the quantity picker within the product table/quick view lightbox. No extra configuration is required - the plugins work perfectly together.

Quantity plugin #2 - Min/Max Quantities

Min/Max Quantities is the official quantities plugin from

It's the most advanced limit cart quantity plugin featured in this article. As well as letting you set minimum and maximum quantities for each product, it also works with individual product variations. It even supports minimum and maximum order values, which is a real benefit for many stores. There are some extra bonus features such as the ability to set the minimum and maximum quantity globally or for individual products, and to exclude specific products from these rules.

You can also use the plugin to force customers to buy in specific multiples - e.g. so that you can only buy a product in increments of 5.

How does it work with WooCommerce Product Table?

When you use Min/Max Quantities with WooCommerce Product Table, you are physically prevented from adding the wrong number of products to the cart. This works whether you add a global minimum/maximum quantity or value for the entire order, or if you control the quantities for individual products or variations. That's how it lets you limit cart quantity in WooCommerce.

The quantity picker in the product table will only show the available quantity. For example, if you set a maximum quantity then when you click the up arrow, you can't increase it beyond the maximum quantity.

If you try to override this and manually type a higher or lower number into the quantity box, then an error message will appear. An error message will also appear if you've set global rules for your store and try to add more than the maximum quantity to the cart.

If your cart doesn't contain the minimum number or value of products, then an error will appear in the cart telling you how much more you need to add.

An error will also appear in the cart if you try to add more than the maximum value of products to your order. This happens in the cart rather than the product table, as that's where the total order value is calculated.

WooCommerce minimum maximum order value plugin
WooCommerce minimum maximum quantity product table


There are a couple of minor incompatibilities between the two plugins that we're aware of. Please set up your product tables as follows to ensure they work correctly together.

Only works with standard add to cart buttons (not checkboxes)

The official WooCommerce Min/Max Quantities plugin doesn't work with the add to cart checkboxes in WooCommerce Product Table.

If you're using the plugin to set a minimum quantity then you'll need to use the standard add to cart buttons instead of checkboxes. You can either set the add to cart button type globally on the plugin settings page, or just in the specific tables where you're using products with a minimum quantity.

Doesn't work with separate variations

If you're displaying variable products in the table, then you must enable variation dropdowns instead of listing each variation on a separate row. If you want to use the separate variations option, then you should use the YITH plugin (below) instead, which works better with individual variations.

If you use variation dropdowns in the product table, then the quantity rules appear differently depending on where you set them:

    • ​If the minimum/maximum quantity is added for the product as a whole (so that it applies to all variations of that product), then the correct minimum quantity will appear in the product table quantity box.
    • If the minimum/maximum quantity is added for each variation individually then the product table quantity box will show '1' - but when you select a variation and try to add the wrong quantity to the cart, an error appears. This prevents customers from accidentally adding the wrong number of products.

How does it work with WooCommerce Quick View Pro?

The official WooCommerce quantity plugin works nicely with WooCommerce Quick View Pro. Customers will see a warning if they try to add an incorrect quantity to the cart from the quick view lightbox.

If you set a minimum quantity, then this will appear as the default quantity in the quick view lightbox.

Quantity plugin #3 - YITH Woocommerce Minimum Maximum Quantity

YITH Woocommerce Minimum Maximum Quantity is a popular quantity limiting plugin with plenty of features. The main reason to use this rather than the official extension is because it supports category-level minimum and maximum quantities. I don't know of any other WooCommerce quantity plugins that can do this.

Specifically, you can use the YITH plugin to set a minimum and/or maximum number of products that can be purchased from each category. You can either do this globally for all your categories, or for each individual category as required.

The YITH plugin also has the usual options to restrict quantities at the product level or for your whole store. However, the thing that makes it unique is its ability to restrict quantities within categories.

How does it work with WooCommerce Product Table?

When you use the YITH plugin with WooCommerce Product Tables, customers can add products to their cart as usual.

This is what happens if they try to purchase the wrong quantity:

  • If they are below the minimum quantity (e.g. the minimum quantity for a category is 2 and they add 1 product) - the product is added to the cart and a helpful message appears advising them that they must add more before they can complete the purchase.
  • If they are above the maximum quantity (e.g. the maximum quantity for your store is 5 and they try to add 6 products) - a message appears advising them that they cannot add the products to the cart.

The error will appear above the table after the page reloads if you are not using AJAX cart for your product tables. If you are using AJAX cart then products are added to the cart without refreshing the page, so the error will appear inline. Here are some screenshots from my testing:

Unlike the official WooCommerce Min/Max Quantities plugin, the YITH plugin works nicely with the AJAX cart feature in WooCommerce Product Table and add to cart checkboxes. If you want to use these features then we'd therefore recommend the YITH plugin.


We're aware of one minor compatibility issue between YITH's quantity plugin and WooCommerce Product Table.

If you're listing variable products with each variation on a separate row of the table, then if you quantity rules to the overall product then the correct minimum quantity appears in the product table quantity box. However, if you add quantity rules to individual variations then this won't be reflected in the quantity box - but an error will appear if a customer tries to add the wrong quantity to the cart, preventing any incorrect orders from taking place.

How does it work with WooCommerce Quick View Pro?

WooCommerce Quick View Pro works nicely with YITH's quantity plugin.

The only limitation is that if you set a minimum quantity for a product, then the default quantity in the quick view lightbox will still appear as 1. If you try to add a quantity of 1 to the cart then you will see an error message telling you the minimum quantity. As a result, you can use YITH's quantity plugin with WooCommerce Quick View Pro, but it's not quite as seamless as the official quantity plugin.

Which maximum order plugin to use?

For guaranteed stability and long-term support, I recommend the official Min/Max Quantities plugin. If you need to restrict quantities at category-level, then use the YITH plugin instead. YITH is also a reputable plugin company, so you will be safe with either plugin.

Where can I get the plugins?

You can buy WooCommerce Product Table and WooCommerce Quick View Pro on this website. Here are your links to get the quantity plugins featured in this article:

WooCommerce Product Table
Add the minimum and maximum quantities feature to your store today!


  1. Rico
    September 14, 2020 Reply

    The problem with woocommerce "sold individually" is, if a product already is added to cart, and the "add to cart button" also redirects to checkout, the redirect won't work.
    This happens with customers who have a slow internet connection. They press the add-to-cart button, it starts loading, they press it again and then the redirect doesn't work anymore because they already have the product in their cart with the first press.
    Is there a way of fixing that, so that the redirect will still work? For example a code snippet that implements that quantity always returns to 1 on checkout?

    • Jae Narra
      September 15, 2020 Reply

      Hi Rico,

      What you describe is a limitation of WooCommerce itself. I suggest that you raise it with support for further assistance.

      Should you have any other questions/concerns, kindly fill up a form at our Support Center so we can get back to you much sooner.

  2. Miss Enone
    February 27, 2019 Reply

    It's Possible To Have The "Add To Cart" Button Turn On When At Least Of A Mimimum Variable Product Is Selected When In A Single Product Page And A Table Of Products Variation Is Displayed?

    • Katie Keith
      February 28, 2019 Reply

      Unfortunately this isn't possible - instead, an error appears if you try to add products to the cart before selecting the minimum quantity.

Please share your thoughts...

Your email address will not be published.