Goal: show a short note like “more colours available” or “more styles available” under products on collection pages when they have multiple variants.
What changed: the correct file was identified as Snippets/card-product.liquid (not product-card.liquid). The helper provided a Liquid condition to detect multiple variants and specific option types.
Working solution: insert, under the product title, a condition such as:
For colours: show the note when card_product.variants.size > 1 and card_product.options_by_name[‘color’].values.size > 1.
For styles: show the note when card_product.variants.size > 1 and card_product.options_by_name[‘style’].values.size > 1.
Placement matters; the helper shared where under the title to add it. The original poster confirmed it worked and adjusted the text to “more colours available.”
Other updates: one user (JK2022) requested similar help and was asked to open a separate community question. Another user posted their collection template code seeking the same result. Two users reported issues after pasting a full replacement code, including product images not showing; no fix was provided in-thread.
Status: original issue solved for the OP; additional user issues remain open. Code snippets and placement are central to understanding the solution.
Summarized with AI on December 31.
AI used: gpt-5.
I am looking to add the text ‘more colours available’ or ‘more styles available’ underneath the relevant individual products on their collection pages - any products that have colour or style variants. I have read some threads on this and have tried the recommendations in terms of adding some code but to no avail. Any help would be greatly appreciated.
For example on the following page: https://www.mutterlyfabulous.co.uk/collections/collars I have these products available in a number of colour variants so I would like some text to show this under each of the products on the collection page.
Yes - exactly this! What section of the code should I be looking at for this file? I cannot find a ‘product-card.liquid’ file but under Templates I have a ‘product.collars.json’ file?
I have had a look in the Snippets folder and there is a ‘card-product.liquid’ file. Could this be relevant? Other than that, the only ‘product’ related files are ‘product-media.liquid’ and ‘product-thumbnail.liquid’
@LitExtension Would you be able to help us with this same issue? We’re hoping to add “More Colors Available” under the products with more than one color variant. Would really appreciate your help! Thank you!
{%- if card_product and card_product != empty -%}
{%- liquid
assign ratio = 1
if card_product.featured_media and media_aspect_ratio == ‘portrait’
assign ratio = 0.8
elsif card_product.featured_media and media_aspect_ratio == ‘adapt’
assign ratio = card_product.featured_media.aspect_ratio
endif
if ratio == 0 or ratio == nil
assign ratio = 1
endif
-%}
It’s worked! Amazing, thank you so much. I just changed the text to say ‘more colours available’ as this is the variant on the product we spoke about.
I also have another collection page whereby we have a number of ‘style’ variant options available, so would like to add similar on the collection page to notify customers that there are ‘more styles available’. I have copied a link to the page below:
{%- paginate collection.products by section.settings.products_per_page -%}
{% comment %} Sort is the first tabbable element when filter type is vertical {% endcomment %}
{%- if section.settings.enable_sorting and section.settings.filter_type == 'vertical' -%}