# Stop products from being ordered together, or require them together

Source: https://docs.minmaxify.com/article/products-together (updated 2026-11-26)

With rules, MinMaxify can stop certain products from being ordered together, allow only one product from a group, or require one product when another is in the cart.

Rules are part of the Premium and Plus plans.

## Products that cannot be ordered together

Example: products from group A cannot be in the same order as products from group B.

1. In your Shopify admin, go to **Apps → MinMaxify Order Limits → Rules** and click **Add rule**.
2. Choose **Exclusive groups**.
3. In **Name**, type a name for the rule.
4. Under **When**, choose the products of group A. To pick them from your store, choose **Product** and **is one of**, and click **Add Products**. You can also choose them by **Collection**, **Product Tag** or **Vendor**.
5. Under **Then**, in **Products in the group**, choose the products of group B in the same way.
6. Leave **Max** at 0. It means that the products of group B cannot be ordered while a product of group A is in the cart.
7. In **Message to customers**, type the text that customers see, for example "Frozen products cannot be ordered together with plants."
8. Click **Save**, then open **Publish** and click **Publish now**.

## Only one product from a group

Example: a customer can choose only one of several free gifts.

1. On **Rules**, click **Add rule** and choose **Mutually exclusive**.
2. Type a **Name**.
3. In **Products in the group**, choose the products of the group.
4. Leave **Max lines** at 1. The cart can then hold only one of these products.
5. Type the **Message to customers**, save and publish.

**Max lines** counts different items, not quantities. Two variants of one product count as two items. The customer can still order more than one unit of the product that they choose. To limit the quantity too, click **Add field** and add **Max**.

## A product that needs another product

Example: an accessory can be ordered only together with the main product.

1. On **Rules**, click **Add rule** and choose **Mandatory groups**.
2. Type a **Name**.
3. Under **When**, choose the product that needs the other one (in the example, the accessory).
4. Under **Then**, in **Products in the group**, choose the product that must be in the cart too (in the example, the main product).
5. Leave **Mandatory (cart must include items from this group)** selected.
6. Type the **Message to customers**, save and publish.

This rule checks that both are in the cart. MinMaxify does NOT require equal quantities of two products.

## Good to know

- MinMaxify does not stop a product from being added to the cart. When the cart breaks the rule, the app shows your message and blocks the checkout, until the customer removes a product.
- For the details of conditions and product groups, see [Rule conditions: when a rule applies](https://docs.minmaxify.com/article/rule-conditions) and [Rule limits: what a rule can limit](https://docs.minmaxify.com/article/rule-limits).
