> For the complete documentation index, see [llms.txt](https://help.openloyalty.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.openloyalty.io/playbook/sample-setups/sample-product-analytics/special-offer-inside-a-category-campaign.md).

# #6 A special offer inside a category campaign

Give one product a higher reward inside a category campaign, so that its buyers earn only the special offer.

{% hint style="info" %}

### Business case

A category campaign rewards everything in a category at the same rate. When you want to push one product inside it with a higher reward, two rules match that product, and by default their rewards add up, so buyers get the special offer plus the category reward.

**Rule resolution** decides what happens when one product matches several rules of the same campaign. With **Priority wins**, only the first matching rule rewards each product, so the special offer replaces the category reward for that product, and everything else in the category keeps its normal rate.

**💡 Useful for** featured products, hero items in a seasonal campaign and supplier-funded offers inside a broader category promotion.
{% endhint %}

### 🧩 Worked example

An "Outdoor" campaign gives **10 points per item** in the Outdoor category, and one jacket model (`JACKET-01`) gets a special offer of **25 points per piece**. A member buys 2 jackets and 3 pairs of gloves, all in the Outdoor category:

|           | Sum all (default)    | Priority wins, jacket rule first |
| --------- | -------------------- | -------------------------------- |
| Jackets   | 2 × 10 + 2 × 25 = 70 | 2 × 25 = 50                      |
| Gloves    | 3 × 10 = 30          | 3 × 10 = 30                      |
| **Total** | **100**              | **80**                           |

With **Priority wins**, jacket buyers earn 25 points per piece, the offer you announced, and other Outdoor products earn 10.

***

### ✅ Before you start

* The products in your catalog with their category, so the campaign can target the category. See [Importing Your Catalog](https://help.openloyalty.io/integrations-and-data-exchange/product-catalog/importing-your-catalog).
* Rule resolution is available on campaigns triggered by **Purchase transaction**, and works within one campaign: rewards from different campaigns for the same purchase still add up.

***

### 🛠️ Step by step

{% stepper %}
{% step %}

### Step 1: Add the category rule

Create a direct campaign triggered by **Purchase transaction**, or open your existing category campaign. In the **Rules & Effects** step, add a rule:

* **Targets:** **Add attribute** › category, **Condition:** In, value Outdoor. **Target name:** Outdoor.
* **Effect:** Add units to the points wallet in **Standard** mode, **Applies to:** Outdoor, **Calculate by:** By quantity, **Units:** 10.

*👉 Learn more:* [Creating Campaigns](https://help.openloyalty.io/campaigns/campaigns/campaigns-and-referral-campaigns/creating-campaigns) and [Transaction Item Filters](https://help.openloyalty.io/campaigns/campaigns/campaigns-and-referral-campaigns/creating-campaigns/transaction-item-filters)
{% endstep %}

{% step %}

### Step 2: Add the special offer rule

Add a second rule in the same campaign:

* **Targets:** **Add attribute** › SKU, **Condition:** In, value `JACKET-01`. **Target name:** Jacket.
* **Effect:** Add units to the points wallet in **Standard** mode, **Applies to:** Jacket, **Calculate by:** By quantity, **Units:** 25.
  {% endstep %}

{% step %}

### Step 3: Turn on Priority wins and order the rules

As soon as the campaign has two rules, the **Rule resolution** card appears next to them.

* Select **Priority wins**.
* Move the jacket rule **above** the Outdoor rule with the **↑** button.

<figure><img src="https://3202191049-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYxbcM03fnO79kn9uY8G%2Fuploads%2Fgit-blob-4e281517d67695bc9d84daaefdf2176fb16391fa%2Fplaybook-product-analytics-rule-resolution.png?alt=media" alt="Rule resolution card with the Priority wins and Sum all options"><figcaption></figcaption></figure>

{% hint style="warning" %}
Rules are evaluated top-down, so put the more specific rule first. If the Outdoor rule is first, it wins for the jacket too, and the special offer never pays out.
{% endhint %}

*👉 Learn more:* [Rule Limits and Rule Resolution](https://help.openloyalty.io/campaigns/campaigns/campaigns-and-referral-campaigns/rule-limits-and-rule-resolution)
{% endstep %}

{% step %}

### Step 4: Save and test

Save the campaign. Then go to **Campaigns › Direct**, click **Campaign simulator** and run a **Purchase** with 2 jackets and 3 pairs of gloves in the **Basket**. The simulator applies the rule resolution, so you should see 80 points.

*👉 Learn more:* [Campaign Simulation](https://help.openloyalty.io/campaigns/campaigns/campaign-simulation)
{% endstep %}
{% endstepper %}

***

### 💡 Actionable tips

* To cap the special offer, add a per-rule limit to the jacket rule, for example 5 **Items rewarded** per member (see [#5 Promoting a new product with a high reward](https://help.openloyalty.io/playbook/sample-setups/sample-product-analytics/promoting-a-new-product-with-a-high-reward.md)). With **Priority wins**, a jacket bought above the cap earns nothing from this campaign: the Outdoor rule doesn't take over.
* Rewards calculated on the whole transaction are calculated without the products that rules above them have already rewarded, so rule order matters for those too.
* Existing campaigns keep **Sum all** until you switch to **Priority wins**. Check the rule order before switching an existing campaign.
* In Product Analytics, filter **SKUs** by the jacket to compare its **Loyalty cost** with the rest of the category.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.openloyalty.io/playbook/sample-setups/sample-product-analytics/special-offer-inside-a-category-campaign.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
