How to create the shopify Product metafield definitions image file type

how to create and use the product image meta fields

{% if product.metafields.my_fields.product_for_only_oily_skin_img != blank %}
    
        
    {{  product.metafields.my_fields.product_for_only_oily_skin_tx }}
  {% endif %}

Hi @AvidBrio ,

As shopify upload all files on CDN so you have to use img_url filter for getting the image CDN path. you can use the below code for image url
{{ product.metafields.my_fields.product_for_only_oily_skin_img | img_url:“master” }}

Thanks,
ISKPRO

2 Likes

Hello,

I am having the same problem. In which section do I need to paste this code?

@andauser can you post here your code snippet and problems statement

Thank you @AvidBrio , I have solved my problem using instructions of my theme provider.

Best regards,

Ayse