get_variants
Get all variant objects associated with a specific product.
To be used in combination with the following objects:
product | get_variants() returns [array]
Params
-
productany: The specified product object.
Example
{{#var myVariants = product | get_variants() /}}
{{#for variant in myVariants}}
{{ variant.title }}
{{/for}}
Was this article helpful to you?