Hello,
I currently have my collection pages displaying the total number of variants available using the code below. It is inserted on my ‘card-product’ liquid file.
{%- if card_product.variants.size > 1 -%}
{{ card_product.variants | size }} options available
{%- endif -%}
Now what I am trying to do is specifically pull the color variant number data, so it only shows the number of color variants. Any help? Or can somebody point me to the documentation on referencing product data.
I’m on Dawn 5.0.
Thank you