Show message on Certain Variants

Highlighted
Tourist
4 0 1

Hey, I'm trying to write code to show a message on Variants of Specific products.

It's the only product on my store with 2 variants so if we could set this to show on two variants but not more that would also work. 

Here's the code I added

<div class="text {% unless product.variants.size > %}hidden{% endunless %}">
<br>
Select your Type
<br>
</div>

Let me know if there's a way I can change this to work on only two products. Cheers,

 

Wes

0 Likes