How to access image metafield in product.liquid

Highlighted
New Member
3 0 0

I have added a few metafields to the image and I am trying to access it on product.liquid. Currently, I am just logging it. I wanted to know if there is a way to access it on the liquid page. What is the syntax?

0 Likes
Highlighted
Excursionist
29 5 4
Highlighted
New Member
3 0 0

Hi Frank,

 

I can access product metafields in the liquid but not the image metafields.

https://help.shopify.com/en/api/reference/products/product-image#metafield

0 Likes
Highlighted
Excursionist
29 5 4

Can you give me a sample product URL (has metafields)?

0 Likes