Add "more colors available" to collection page

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 :laptop: 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

1 Like

@JagD21

Hire Someone to get this fixed. if you don’t know coding or development,
let me know if you need any more help.
Thank you.