How to access all variants of a product? 🔄

### Explanation To access product variants: ```liquid {% for variant in product.variants %} {{ variant.title }} {{ variant.price | money }} {{ variant.available }} {% endfor %} ``` Key points: - `product.variants` returns array of all variants - Each variant has: - `title` - `price` - `available` - `sku` - `option1`, `option2`, `option3` - Returns empty array if no variants - First variant is default variant Reference: [Shopify Product Object](https://shopify.dev/docs/api/liquid/objects/product)

Answer Options:

  • {{ product.options }}
  • {{ product.variations }}
  • {{ product.variants }}
  • {{ product.all_variants }}
Shopify Free Test
← PreviousQuestion 1 of 1Finish →
00
← PreviousFinish →
Copyright ©Michael Bollin. Found some mistake?[email protected]