On the collection page I am looking to add a line of text to each product that have more than one variant. I am currently developing my store using the Dawn theme and my knowledge of code is very limited. I have tried editing the code from thisHow to display product swatches in your in Shopify 2.0 Dawn theme | by
OCTAVIAN CONTIS | Geek Culture | Dec, 2021 | Medium.
I have put the following code into the snippets/prodcut-card.liquid.
{% if product_card_product.options_by_name[āColorā] %}
More colors available
{% endif %}
The code does work as it displays āMore colors availableā under the correct products but donāt know how to edit the code so the text will only be displayed on products that have more than 2 variants.
Any help would be greatly appreciated