WooCommerce Max Quantity Documentation

WooCommerce Max Quantity is a WooCommerce plugin that helps you control your inventory. It let’s you set a maximum quantity limit for each product, per order. This is useful if you want to control your WooCommerce inventory: for example, if you don’t want to let one customer purchase all of your inventory at once.

You can read about the WooCommerce Max Quantity features on the plugin’s page.

Jump down to:

Installation   |   Settings   |   Variety of Ways To Use   |   Troubleshooting   |   Questions & Comments   |   Ask a Question

Installation

  1. To install the plugin, go to your WordPress dashboard –> Plugins –> Add New.
  2. Search for “WooCommerce Max Quantity” to find the plugin.
  3. When you see “WooCommerce Max Quantity”, click “Install Now” to install the plugin.
  4. Click “Activate” to activate the plugin.

Top

Settings

WooCommerce Max Quantity has only two settings. You can use these settings in a variety of ways to accomplish the unique goals of your store. You can use either one setting, or the other, or both.

The two settings are:

  1. The Universal Max Limit
    A universal limit means that this limit affects all products in your WooCommerce store. This is the max quantity limit that can be added to the cart, per each product. The universal limit works like this: for example, if you set it to 3, then people can only add a maximum of 3 of each product to their cart.

    WooCommerce Maximum Quantity Limit Per Product Setting

    This is the universal max setting. It is labeled, “Maximum Quantity Limit Per Product.”

    To find this setting, go to WooCommerce -> Settings -> Products tab. Click “Inventory”. Scroll down to “Maximum Quantity Limit Per Product.” Set your desired limit, there.

    Each product can override this setting from its own product inventory tab (see the next setting).

  2. The Individual Product Max

    The individual product max limit is a quantity limit that is only set for a single product. This lets you set a different limit for each product. If you set this limit for a product, then that product’s own limit will always override the universal limit.

    Woocommerce Individual Product Max Quantity Per Order Setting

    An individual product’s “Max Quantity Per Order” setting.

    To find this setting for an existing product, go to the product’s own “Edit product” page. (In your WordPress dashboard, go to “Products” then click one of your products to edit it.) (You will also see this setting when adding a new product.) Scroll down to the “Product Data” box. Click on the Inventory tab. There, you’ll see the setting called, “Max Quantity Per Order.” Set your desired max limit for that product, there. You must remember to click “Update” to save your changes.

Top

Variety of Ways To Use

The following examples are meant to explain the possibilities available for putting a limit on quantities because every store has unique needs. WooCommerce Max Quanity helps you control the quantity per order, per each product in several ways. This, in turn, helps you control your inventory.

You can use this plugin in several ways. For example:

  • You can set the universal limit to affect all products, and then set the individual product limit for only a few products.

    The products which have their own limit set will use their own limit, rather than the universal limit. All other products will use the universal limit.

  • You could NOT set a universal limit (just leave it blank). For example, if you don’t want any limit set on most products, and you only want to set a limit on one or two products. You can do that by setting the limits only for those products, individually, and don’t set a universal limit.

  • You could just set the universal limit, and never use the individual product limits. The universal limit will automatically place the limit on all products.

Top

Troubleshooting

Here are some points to consider when troubleshooting a problem with this plugin.

  • There is one known issue that only applies to Variable products when backorders are enabled/allowed. (Variable products are products with variations.) When backorders are allowed for Variable products, the limit does not work. This issue is effective since version 1.4. I will fix this in the next update.

  • If you go back and set an individual product limit on an existing product, you must remember to click “Update” to save your changes.

  • If you enter a limit of “0” it will be considered as a blank setting, which means that there is no limit. (A blank setting is considered as “no limit.”) So, setting the limit to “0” is useless for this plugin. (If you want to stop a product from being purchased, even temporarily, the correct and standard way to do that with WooCommerce would be to mark the item “out of stock.” You don’t need this plugin to do that.)

Top

Updated on March 6, 2017

We've 8 Responses

  1. February 11th, 2017 at 10:54 am

    Hi! Is there a way to make that the Maximum quantity be defined by the Available stock? For example a universal rule that doesn’t let you add yo cart more than 50% of the current stock?
    Thanks

    avatar
  2. February 22nd, 2017 at 7:09 am

    Hello is there a way to limit the quantity to the whole cart whatever product we try to add?
    I mean limit the cart to 1 (for exemple) item whatever the product chosen ?

    Thanks

    avatar
  3. April 20th, 2017 at 10:52 am

    Hi Isabel, this plugin throws a few errors with the latest version of WooCommerce. I’ve fixed it in my version, feel free to reply here if you’d like a copy. 🙂

    Notice: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/storefront-child/woocommerce/single-product.php'), wc_get_template_part, load_template, require('/themes/storefront-child/woocommerce/content-single-product.php'), woocommerce_template_single_add_to_cart, do_action('woocommerce_simple_add_to_cart'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_simple_add_to_cart, wc_get_template, include('/themes/storefront-child/woocommerce/single-product/add-to-cart/simple.php'), apply_filters('woocommerce_stock_html'), WP_Hook->apply_filters, isa_wc_max_qty_hide_availability, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /home/atelierc/public_html/dev/icenta/wp-includes/functions.php on line 4137
    
    Notice: id was called incorrectly. Product properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/storefront-child/woocommerce/single-product.php'), wc_get_template_part, load_template, require('/themes/storefront-child/woocommerce/content-single-product.php'), woocommerce_template_single_add_to_cart, do_action('woocommerce_simple_add_to_cart'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_simple_add_to_cart, wc_get_template, include('/themes/storefront-child/woocommerce/single-product/add-to-cart/simple.php'), woocommerce_quantity_input, apply_filters('woocommerce_quantity_input_args'), WP_Hook->apply_filters, isa_wc_max_qty_input_args, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /home/atelierc/public_html/dev/icenta/wp-includes/functions.php on line 4137
    avatar
  4. April 24th, 2017 at 8:15 am

    Hi Isabel,
    Thanks for the plugin. Is it possible to add max quantity in variable products, in the product variations.
    That would be great!
    Thanks

    avatar
    • April 28th, 2017 at 1:19 am

      Hi. For now, you can add the max quantity to the product. This will be enforced with any variations. But, adding a separate max quantity to each variation is not supported yet. I will add this to a future release.

      avatar

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]