How to display 'More Options' only if other variants are available in Product List (Craft Theme)

Topic summary

A user seeks to display “More Options” text on product listings only when multiple variants exist, using the Craft theme.

Initial Solution Provided:

  • Add conditional code to product-card snippet checking product.has_only_default_variant
  • Place code near price or title display area

Issue Encountered:

  • The suggested code displays “More Options” for ALL products, including single-variant items

Revised Solution:

  • Use combined conditional: {%- unless product.has_only_default_variant and product.variants.size > 1 -%}
  • This checks both that the product isn’t default-only AND has multiple variants

Status: The discussion appears to have provided a working solution, though final confirmation from the original poster is pending. The key is using proper Liquid conditionals to verify variant count before displaying the text.

Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

Could someone help me display “More Options” text underneath the Product Title or Price in the products list, only if the product has more variants?

I’m using Craft theme:

You need to go to edit code → snippets → product-card find the price or title display and paste this code in

{%- unless product.has_only_default_variant -%}
  More Options
{%- endunless -%}

This helped with displaying the message but it is displaying for ALL products, even if they only have one variant:

{%- unless product.has_only_default_variant and product.variants.size > 1 -%}
More Options
{%- endunless -%}