For the complete documentation index, see llms.txt. This page is also available as Markdown.

Target by collection, tag, or vendor

Target badges to products based on attributes like title, type, vendor, price, tags, inventory, and more.

Condition-based targeting automatically shows badges on products that match rules you define — no need to hand-pick products one by one.

Available product conditions

The condition picker currently includes:

  • Product title, type, vendor, option, and tag

  • Product price, compare price, sale price, and weight

  • Product created and published dates

  • Product inventory and collections

  • Product and variant metafields

  • Product variants and variant inventory

The operator list changes with the selected condition. Text conditions include operators such as contains and starts with; numeric conditions include is greater than and is less than; inventory conditions include stock-specific choices.

How to add a condition

1

Open the Products tab

In the badge editor, go to Products.

Products tab in the badge editor
Open the Products tab in the badge editor.
2

Select "Products matching conditions"

Under Choose products to show this badge, select Products matching conditions (instead of All products or Specific products).

Products matching conditions option selected
Select Products matching conditions to enable condition-based targeting.
3

Click "Add conditions"

Click Add conditions to create a new rule.

Add conditions button in the targeting panel
Click Add conditions to define a product targeting rule.
4

Select the condition type

Choose the attribute you want to target from the dropdown menu (for example, Product price or Product type).

Condition type dropdown
Choose the product attribute to target.
5

Select the operator

Choose how the condition should evaluate the attribute. For example, select is greater than for a price condition or contains for a title condition.

Operator dropdown
Choose the operator for the condition.
6

Enter the value

Type the value to match against. For price conditions, enter a number. For text conditions like title or vendor, enter the text to match.

Example condition rule targeting products with price greater than 50
A condition rule targeting products priced above 50.
7

Save

Click Save to apply the condition. Products matching your rule will automatically display the badge.

Save button applying the condition
Click Save to apply the condition rule.

AND vs OR logic

When you add multiple conditions, you can choose how they work together:

Logic mode
Behavior

All conditions (AND)

The product must match every rule for the badge to appear. Use this when products need to meet all criteria.

Any condition (OR)

The product only needs to match one rule. Use this for broader targeting.

Examples

All conditions (AND):

  • Product type is equal to "T-Shirt" AND Product price is greater than 30

  • Result: Only t-shirts priced above $30 show the badge.

Any condition (OR):

  • Product vendor is equal to "Nike" OR Product vendor is equal to "Adidas"

  • Result: All Nike and Adidas products show the badge.

All conditions and Any condition toggle
Choose between All conditions (AND) or Any condition (OR) logic for your rules.

Common use cases

  • Sale badge on discounted itemsProduct compare price is greater than 0 badges everything with an active sale.

  • Low stock warningProduct inventory with stock availability is less than 5 shows an "Almost Gone" badge.

  • New arrivalsProduct created with is less than 30, which matches anything added in the last 30 days.

  • Collection-specific badgeCollections is equal to "Summer Collection".

Product created and Product published are measured in day(s) counted back from today, not as a calendar date. A smaller number means more recent.

Next steps

Last updated

Was this helpful?