How to choose products with IF command

PamDigital
Explorer
57 2 9

Hey there,

I will add a custom badge / label to some of my products (25 products only). So how can I choose these products with IF command can someone help me with this please? 

I don't want to use

 

{% if product.handle == "xxxx" %}

 



because I have to add 25 codes in this way. Is there any easier way to do it? (Note: I will show product badges in everypage not only in collection page)

0 Likes
PamDigital
Explorer
57 2 9

hmmm late but I think I can use 

{% if productTags contains 'xxx' %}
0 Likes