variant.product_id in liquid

Highlighted
Shopify Partner
5 0 1

I can not access the variant.product_id value in my liquid template. How can I access it?

0 Likes
Shopify Expert
9981 84 1492

Andy - That property is available via the API, but not Liquid.

This is because in Liquid you'd need to know what the product is before accessing the variants.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes