Is there a way to use metafields within product-media.liquid and product-thumbnail.liquid ?
I am trying to access the metafield “image-code” I added with Admin API :
$image->metafields = [
[
"key" => "image-code",
"value" => "IMAGE_123",
"type" => "single_line_text_field",
"namespace" => "data",
]
];
How can I access the metadata in the template ?