---
title: Set the Product Quantity Field From Your Min/Max Limits
description: "Set the WooCommerce product quantity field's default, minimum and maximum from your per-product min/max limits."
url: "https://wpfactory.com/docs/woocommerce-quantity-input-from-order-limits/"
updated: "2026-09-27"
category: Pro Features
tags:
  - Order Minimum/Maximum Amount for WooCommerce
---

# Set the Product Quantity Field From Your Min/Max Limits

To set the product quantity field from your min/max limits in [Order Minimum/Maximum Amount Limits for WooCommerce](https://wpfactory.com/item/order-minimum-maximum-amount-for-woocommerce/) Pro, go to WPFactory > Order Min/Max > General and scroll to "Quantity" amount type options. Turn on the Quantity input default, minimum, or maximum controls, which read your per-product limits, and save. This is a Pro feature.

### Before you start

- WooCommerce, active.
- [Order Minimum/Maximum Amount Limits for WooCommerce](https://wpfactory.com/item/order-minimum-maximum-amount-for-woocommerce/) Pro: these quantity-input controls are a Pro feature.
- **Quantity** selected as an amount type, and per-product limits set in the **Products** sub-tab (these controls read the "Per product" limits).

### Step-by-step

1. Go to **WPFactory > Order Min/Max** (also reachable at **WooCommerce > Settings > Order Min/Max Amount**) and open the **General** tab.
2. Scroll to **"Quantity" amount type options**.
3. Turn on the controls you want (see the table), then click **Save changes**.

### Options

| Label | Option ID | Default | What it does |
| --- | --- | --- | --- |
| Quantity input (default) | `alg_wc_oma_default_qty_input_based_on_per_product_min` | No | Sets the field's starting value to the per-product minimum. |
| Quantity input (minimum) | `alg_wc_oma_min_qty_input_based_on_per_product_min` | No | Sets the field's `min` attribute to the per-product minimum. |
| Quantity input (maximum) | `alg_wc_oma_max_qty_input_based_on_per_product_max` | No | Sets the field's `max` attribute to the per-product maximum. |
| Add to cart button (loop) | `alg_wc_oma_loop_add_to_cart_set_qty_from_min` | No | On shop and archive pages, adds the per-product minimum quantity in one click. |

![Quantity amount type options in Order Minimum/Maximum Amount Limits for WooCommerce](https://wpfactory.com/wp-content/uploads/Quantity-amount-type-options.png)

### Ready to set this up?

This is a Pro feature of [Order Min/Max Amount](https://wpfactory.com/item/order-minimum-maximum-amount-for-woocommerce/). If you are still on the free version, upgrading unlocks this along with the rest of the Pro toolkit. [Get Order Min/Max Amount Pro](https://wpfactory.com/item/order-minimum-maximum-amount-for-woocommerce/).

Related articles

- [Role/Product/Category Min/Max Rules Not Honored](https://wpfactory.com/docs/role-product-min-max/)
- [Selective Order Limits with Specific Cart Products](https://wpfactory.com/docs/targeted-order-limits/)
- [Order Min/Max Amount: Reset a Settings Section to Defaults](https://wpfactory.com/docs/order-min-max-reset-settings-section/)
- [Order Min/Max Amount: Developer Hooks, Filters and Shortcodes Reference](https://wpfactory.com/docs/order-min-max-developer-hooks-filters/)
- [Min/Max Rules Troubleshooting & Best Practices](https://wpfactory.com/docs/min-max-troubleshooting-guide/)

 

[![Order Minimum/Maximum Limits for WooCommerce](https://wpfactory.com/wp-content/uploads/Order-Minimum-Maximum-Amount-for-WooCommerce.webp)](https://wpfactory.com/item/order-minimum-maximum-amount-for-woocommerce/)
