When using a variant_reference
field type (or list.variant_reference
) within a metaobject, it’s not possible to access the parent product object for that variant in liquid, meaning that you have no context to which that variant belongs to.
In the docs, the product
is available on the variant object, but it’s always returning empty/null when you call that on a variant assigned to a variant_reference
field within the context of a metoabject entry.
Is this a bug, or is there another way to access the parent product of a variant in this scenario?