---
title: How to Set a Maximum Order Quantity in WooCommerce
description: Set a maximum order quantity in WooCommerce, per product or across the whole cart.
url: "https://wpfactory.com/docs/woocommerce-maximum-order-quantity/"
updated: "2026-09-26"
category: How to
---

# How to Set a Maximum Order Quantity in WooCommerce

## Set a maximum order quantity

A maximum order quantity caps how many units a customer can buy, per product or across the whole cart, which is useful for limited stock and fair-share promotions. You set it in the Maximum Quantity section of the [Min Max Step Quantity Limits Manager for WooCommerce](https://wpfactory.com/item/product-quantity-for-woocommerce/). The store-wide and per-product forms are free.

![Maximum Quantity options in Quantity Manager, including the cart total maximum](https://wpfactory.com/wp-content/uploads/quantity-manager-maximum-quantity-options.png)

### Steps

1. Go to **WPFactory > Quantity Manager** (also reachable at **WooCommerce > Settings > Product Quantity**).
2. Open the **Maximum Quantity** section and tick **Maximum quantity** to enable it.
3. To cap each product, set **Per Item Maximum Quantity Options > All products** (`wpfmmsq_max_per_item_quantity`). Set to 0 to disable.
4. To cap the cart total, set **Cart Total Maximum Quantity Options > Cart total quantity** (`wpfmmsq_max_cart_total_quantity`).
5. Click **Save changes**.

### Options reference

| Label | Option ID | Default | Free/Pro |
| --- | --- | --- | --- |
| Maximum quantity (enable) | `wpfmmsq_max_section_enabled` | No | Free |
| All products | `wpfmmsq_max_per_item_quantity` | 0 | Free |
| Cart total quantity | `wpfmmsq_max_cart_total_quantity` | 0 | Free |
| Per product | `wpfmmsq_max_per_item_quantity_per_product` | No | Free |

**Tip:** to show the maximum in the quantity field on load, set **General > Initial Quantity Options > Single product page** to **Max quantity**. A maximum of 1 effectively limits customers to a single unit.

### Get more control

The store-wide and per-product maximums are free. [Min Max Step Quantity Limits Manager for WooCommerce](https://wpfactory.com/item/product-quantity-for-woocommerce/) Pro adds per-category and per-attribute maximums. [See what Pro unlocks](https://wpfactory.com/item/product-quantity-for-woocommerce/).

Related articles

- [How to Set a Minimum Order Quantity in WooCommerce](https://wpfactory.com/docs/woocommerce-minimum-order-quantity/)
- [How to Set a Maximum Quantity Per Category](https://wpfactory.com/docs/category-maximum-quantity/)
- [Cart or Order Page Fails with Decimal Quantity Products](https://wpfactory.com/docs/decimal-quantity-order-issue/)
- [Minimum/Maximum Quantity Settings Not Working](https://wpfactory.com/docs/quantity-settings-malfunction/)
- [How to Show a Total Price by Quantity in WooCommerce](https://wpfactory.com/docs/woocommerce-total-price-by-quantity/)
