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