Shopify Product Page How To Seperate Links From Metafields
Solution:
If you have an image uploaded to a product, you get it from product.images. Makes sense right? So if you have the name of an image as per something you stored in a metafield, you'd look through your product images looking for the match. So you can iterate through your product.images and if the name in your metafield matches in the src of the product.image you are examining, there you go. Feed that into an image element and you'll see it on screen.
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.