> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/badges-and-labels/target-products.md).

# Target specific products

Learn how to select which products display your badge or label in Sami Product Labels.

Every badge needs a product scope. You can apply it to all products, pick products manually, or use conditions that update the matched set automatically.

## Targeting modes

The **Products** tab offers three targeting modes:

| Mode                             | Description                                                                                                                                 |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| **All products**                 | Show the badge on every product.                                                                                                            |
| **Specific products**            | Search or browse the Shopify product picker and select individual products.                                                                 |
| **Products matching conditions** | Match products automatically by title, type, vendor, price, inventory, metafield, variant data, collection, and other supported attributes. |

{% hint style="info" %}
**Badging a discount**\
Under **Products matching conditions**, the field list has a **Discount conditions** group with **Sami discount** — it matches the products covered by a discount you created on the [Discounts](/discounts/overview.md) page. A badge scoped that way can also print the discount's own numbers with `{sami_discount_value_percent}`, `{sami_discount_code}`, and the other [Sami discount variables](/reference/dynamic-variables-reference.md).
{% endhint %}

## How to set product targeting

{% stepper %}
{% step %}

## Open the badge editor

From **Sami Product Labels**, open a badge or create a new one.
{% endstep %}

{% step %}

## Go to the Products tab

Click the **Products** tab in the badge editor to access targeting settings.

<figure><img src="https://1598842017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1WRTlT5AcaLSAedbCJyZ%2Fuploads%2Fgit-blob-0694010c9dcf0a6660bc5d0b976d185e59a672f2%2Fimage_56.png?alt=media" alt="Products tab in the badge editor"><figcaption><p>The Products tab lets you choose which products display your badge.</p></figcaption></figure>
{% endstep %}

{% step %}

## Choose your targeting mode

Select one of the three targeting modes:

* **All products** — Apply the badge store-wide.
* **Specific products** — Manually search and select individual products from your catalog.
* **Products matching conditions** — Define rules that automatically target products based on their attributes.
  {% endstep %}

{% step %}

## For Specific products: search or browse

Search for products by name in the search field, or click **Browse** to open the Shopify product picker and select from your full catalog.

<figure><img src="https://1598842017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1WRTlT5AcaLSAedbCJyZ%2Fuploads%2Fgit-blob-211b4619729cda7abc70d6bd846510254c24aed8%2Fimage_57.png?alt=media" alt="Specific products section with search field and Browse button"><figcaption><p>Search by name or click Browse to find products from your catalog.</p></figcaption></figure>
{% endstep %}

{% step %}

## For Products matching conditions: add rules

Select whether products must match **all conditions** or **any condition**, then click **Add conditions** to create a rule. Choose the condition, operator, and value. Add more rows as needed.

<figure><img src="https://1598842017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1WRTlT5AcaLSAedbCJyZ%2Fuploads%2Fgit-blob-35fd2d2c304b3887c8c7f158e9972cf50c069f89%2Fimage_58.png?alt=media" alt="Conditions section with all/any selector and Add conditions button"><figcaption><p>Choose the match mode and click Add conditions to define targeting rules.</p></figcaption></figure>
{% endstep %}

{% step %}

## Save your badge

Click **Save** to apply your targeting. The badge appears immediately on the targeted products in your storefront.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Choose **All products** explicitly for a store-wide promotion. An empty **Specific products** selection is not the same as choosing all products.
{% endhint %}

## Next steps

* [Target by product attribute](/badges-and-labels/target-by-attribute.md) — Filter products by title, type, vendor, price, inventory, and more.
* [Target by customer](/badges-and-labels/target-by-customer.md) — Show badges based on who is browsing your store.
* [Target by country & language](/badges-and-labels/target-by-country-language.md) — Display badges for specific regions or languages.

{% hint style="success" %}
**Need support?**

If you run into any difficulty while following these steps, contact us at <support@samita.io>.
{% endhint %}


---

# 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://docs.samita.io/badges-and-labels/target-products.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.
