> For the complete documentation index, see [llms.txt](https://responsive-media.gitbook.io/advanced-free-shipping/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://responsive-media.gitbook.io/advanced-free-shipping/advanced-features/multiple-rule-groups.md).

# Multiple Rule Groups

## Overview

Multiple rule groups let you create OR logic: customers qualify if they meet ANY rule group's conditions. This is perfect for giving customers multiple ways to earn free shipping.

## When to Use

Use multiple rule groups when:

* Different customer segments should qualify through different criteria
* You want to offer alternative paths to the same discount
* You need "either/or" logic

## Example: VIP or High Value

**Goal**: Free shipping for VIPs OR anyone spending $100+

```
Rule Group 1:
  - Customer tag contains "VIP"

Rule Group 2:
  - Cart total ≥ \$100

Target: All shipping rates → Free
```

**Result**: VIP customers always get free shipping, OR anyone spending $100+.

## More Examples

<details>

<summary>Regional Thresholds</summary>

**Different thresholds by country**

* Rule Group 1: US + $50 cart
* Rule Group 2: CA + $75 cart
* Rule Group 3: UK + £60 cart

</details>

<details>

<summary>Product or Value</summary>

**Free shipping on specific products OR high-value orders**

* Rule Group 1: Product contains "Premium Item"
* Rule Group 2: Cart total ≥ $100

</details>

<details>

<summary>Customer Segments</summary>

**Multiple customer types**

* Rule Group 1: Customer tag "VIP"
* Rule Group 2: Customer tag "Wholesale"
* Rule Group 3: Order count ≥ 10

</details>

## Best Practices

{% hint style="info" %}
Keep rule groups mutually exclusive when possible - makes logic easier to understand and debug.
{% endhint %}

{% hint style="info" %}
Test each rule group independently to ensure they all work correctly.
{% endhint %}

## Related

* [**AND vs OR Logic**](/advanced-free-shipping/core-concepts/and-vs-or-logic.md) - Deep dive into combining conditions


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://responsive-media.gitbook.io/advanced-free-shipping/advanced-features/multiple-rule-groups.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
