---
title: Hide the Add to Cart Button Over a Maximum Amount
description: Hide the WooCommerce Add to Cart button once a customer reaches a maximum amount, and validate the maximum on add to cart.
url: "https://wpfactory.com/docs/woocommerce-hide-add-to-cart-maximum-amount/"
updated: "2026-09-27"
category: How to
tags:
  - Order Minimum/Maximum Amount for WooCommerce
---

# Hide the Add to Cart Button Over a Maximum Amount

To stop customers adding more once they reach a maximum, [Order Minimum/Maximum Amount Limits for WooCommerce](https://wpfactory.com/item/order-minimum-maximum-amount-for-woocommerce/) can validate the maximum the moment an item is added, and even hide the add to cart button on shop and product pages. These maximum-amount controls are free and live on the General tab.

### Before you start

- WooCommerce, active, with [Order Minimum/Maximum Amount Limits for WooCommerce](https://wpfactory.com/item/order-minimum-maximum-amount-for-woocommerce/) installed.
- A maximum limit set in the **Amounts** sub-tab (otherwise there is nothing to enforce).

### 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 **"Maximum" amount limit options**.
3. Turn on the controls you want (see the table), then click **Save changes**.

### Options

| Label | Option ID | Default | What it does |
| --- | --- | --- | --- |
| Validate on add to cart | `alg_wc_oma_max_validate_on_add_to_cart` | No | Checks the maximum as soon as the customer clicks add to cart. |
| Hide add to cart button on loop pages | `alg_wc_oma_max_hide_add_to_cart_loop` | No | Hides the button on shop and archive (loop) pages. |
| Hide add to cart button on single product page | `alg_wc_oma_max_hide_add_to_cart_single` | No | Hides the button on the single product page. |
| Hide add to cart loop content | `alg_wc_oma_max_hide_add_to_cart_loop_content` | (empty) | Text or HTML shown in place of the button on loop pages. |
| Hide add to cart single content | `alg_wc_oma_max_hide_add_to_cart_single_content` | (empty) | Text or HTML shown in place of the button on the product page. |

![Maximum amount limit options: validate on add to cart and hide the add to cart button](https://wpfactory.com/wp-content/uploads/Maximum-Amount-limt-options.png)

### Use cases

- Cap a wholesale-only product at a maximum quantity and replace the button with "Contact us for larger orders".
- Block adding an item to cart the moment the cart would exceed a maximum weight.

### Get more control

These maximum controls are free. [Order Minimum/Maximum Amount Limits for WooCommerce](https://wpfactory.com/item/order-minimum-maximum-amount-for-woocommerce/) Pro adds limits per product, category, user role, shipping method, and more. [See what Pro unlocks](https://wpfactory.com/item/order-minimum-maximum-amount-for-woocommerce/).

Related articles

- [Getting Started with Order Minimum/Maximum Amount Limits for WooCommerce](https://wpfactory.com/docs/use-order-min-max-amount/)
- [Setting Minimum/Maximum Amounts by Currency](https://wpfactory.com/docs/currency-based-minimum/)
- [Setting Minimum/Maximum Amounts by Membership](https://wpfactory.com/docs/membership-level-minimum/)
- [Setting Minimum/Maximum Amounts by Payment Gateway](https://wpfactory.com/docs/payment-gateway-minimum/)
- [Setting Minimum/Maximum Amounts by Shipping Method](https://wpfactory.com/docs/shipping-method-minimum/)

 

[![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/)
