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
AND vs OR logic
When you add multiple conditions, you can choose how they work together:
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.

Common use cases
Sale badge on discounted items — Product compare price
is greater than0 badges everything with an active sale.Low stock warning — Product inventory with
stock availability is less than5 shows an "Almost Gone" badge.New arrivals — Product created with
is less than30, which matches anything added in the last 30 days.Collection-specific badge — Collections
is equal to"Summer Collection".
Next steps
Condition operators reference — every field and operator, and which values each accepts.
Target by customer — show badges based on login status and customer tags.
Target by country and language — display badges for specific regions or languages.
Target products — return to the product targeting overview.
Need support?
If you run into any difficulty while following these steps, contact us at support@samita.io.
Last updated
Was this helpful?






