# Rule examples: common setups step by step

Source: https://docs.minmaxify.com/article/rule-examples (updated 2026-11-27)

This article collects short examples of rules for cases that merchants often ask about. Each example lists what to choose in the rule editor.

Rules are part of the Premium and Plus plans. For the basics, see [Rules: limits that apply only in some situations](https://docs.minmaxify.com/article/rules). To start any of these examples, go to **Apps → MinMaxify Order Limits → Rules** and click **Add rule**. Every rule needs a **Name**, and every limit needs a **Message to customers**. After you save, open **Publish** and click **Publish now**.

## One maximum for every product in your store

Example: at most 2 of each product, without adding the products one by one.

- Starting point: **Cart quantity**.
- **Per**: **Per Product**.
- **Max**: 2.

The rule counts all variants of a product together, and it covers products that you add later. To leave some products out, choose **Product Group (per product)** instead, then **Product** and **is not one of**, and add the products to leave out.

## Either a minimum amount or a minimum quantity

Example: an order needs at least $100, or at least 2 items.

- Starting point: **Blank rule**.
- **Condition type**: **Cart Subtotal**, **less than**, 100.
- **Add limit**: **Per** **Entire Cart**. Remove **Max**, then **Add field** → **Min**: 2.

An order of $100 or more has no limit. An order below $100 needs at least 2 items.

## A product that must be ordered on its own

Example: gift cards cannot be in the same order as other products.

- Starting point: **Exclusive groups**.
- Under **When**: **Product Type**, **equal to**, "Gift Card". You can also pick the product with **Product** and **is**.
- Under **Then**, in **Products in the group**: **Product Type**, **not equal to**, "Gift Card".
- **Max**: 0.

Type the product type exactly as it is written in Shopify. When a gift card is in the cart, no other product can be ordered with it. The same rule works for pre-order products with a product tag: use **Product Tag** with **is** and **is not**.

## A product that cannot be ordered alone

Example: a free gift needs at least one other product in the order.

- Starting point: **Mandatory groups**.
- Under **When**: choose the gift, with **Product** and **is**.
- Under **Then**, in **Products in the group**: **Product**, **is not**, and the same gift.
- Leave **Mandatory (cart must include items from this group)** selected.

To also allow only one gift in each order, add a product limit for the gift with **Max Qty** 1 on the **Product Limits** page.

## A product that needs another product

Example: a customer who orders a printer must also order at least one ink cartridge.

- Starting point: **Mandatory groups**.
- Under **When**: **Product Type**, **equal to**, "Printer".
- Under **Then**, in **Products in the group**: **Product Type**, **equal to**, "Ink".
- Leave **Mandatory (cart must include items from this group)** selected.

## Customers with one tag, but not another

Example: a maximum for customers with the tag "wholesale", except those who also have the tag "distributor".

- Starting point: **By tag**.
- **Condition type**: **All Conditions**, **are met**. Click **Add condition** for each of these:
   - **Customer Tag**, **has tag**, "wholesale".
   - **Customer Tag**, **doesn't have tag**, "distributor".
- Under **Then**: your limit.

## A different limit above an order amount

Example: wholesale customers can order up to 30 items, or up to 75 items when the cart is over $1,000.

Use two rules, so that only one of them applies at a time. The starting point for both rules is **By tag**.

- **Rule 1:** **All Conditions**, **are met**, with two conditions: **Customer Tag** **has tag** "wholesale", and a second **All Conditions** set to **are not met** that holds **Cart Subtotal** **greater than** 1000. Limit: **Entire Cart**, **Max** 30.
- **Rule 2:** **All Conditions**, **are met**, with two conditions: **Customer Tag** **has tag** "wholesale", and **Cart Subtotal** **greater than** 1000. Limit: **Entire Cart**, **Max** 75.

Why two rules: when two limits for the cart apply at the same time, the stricter one decides. A second limit can make your limits stricter, but it cannot relax another limit.

## More examples

- [Set one limit for a collection, vendor or product tag](https://docs.minmaxify.com/article/collection-limit)
- [Set limits only for wholesale or tagged customers](https://docs.minmaxify.com/article/wholesale-customer-tags)
- [Set a minimum order amount with exceptions](https://docs.minmaxify.com/article/minimum-with-exceptions)
- [Stop products from being ordered together, or require them together](https://docs.minmaxify.com/article/products-together)
- [Limit free samples and free gifts](https://docs.minmaxify.com/article/free-samples)

If your case is not here, tell us what you want to limit, with an example of an order that should be allowed and an order that should be stopped. See [Contact MinMaxify support](https://docs.minmaxify.com/article/contact-support).
