Get the variant id of the featured image product

goodquestion
Shopify Partner
2 0 0

Hi, i need to get the id of the branding image (like a : {{product.featured_image.variant.id}} or a {{product.featured_image.variant.sku}} ), how can get this informations ?

 

Thank you in advance !

  • {{
Reply 1 (1)
Jason
Shopify Expert
10882 190 2179

The product image ID is a property available in Liquid already.

https://help.shopify.com/en/themes/liquid/objects/image#image-id

 

What are you trying to do that would stop you from accessing that? 

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★