Skip to content
Try free for 7 days
English
EnglishFrenchSoonItalianSoonJapaneseSoonSpanishSoonPortuguese (Portugal)SoonGermanSoonCzechSoonDanishSoonFinnishSoonKoreanSoonNorwegian (Bokmål)SoonDutchSoonPolishSoonPortuguese (Brazil)SoonTurkishSoonChinese (Simplified)SoonChinese (Traditional)Soon
Open in Claude Ask questions about this pageOpen in ChatGPT Ask questions about this page

Target by product attribute

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.

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.

  1. In the badge editor, go to Products.

    Products tab in the badge editor

    Open the Products tab in the badge editor.

  2. 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 to create a new rule.

    Add conditions button in the targeting panel

    Click Add conditions to define a product targeting rule.

  4. 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. 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. 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. 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.

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.

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.

  • Sale badge on discounted items — Product compare price is greater than 0 badges everything with an active sale.
  • Low stock warning — Product inventory with stock availability is less than 5 shows an “Almost Gone” badge.
  • New arrivals — Product created with is less than 30, which matches anything added in the last 30 days.
  • Collection-specific badge — Collections is equal to “Summer Collection”.

Was this helpful?