Liquid, JavaScript, themes, sales channels
how to create and use the product image meta fields
{% if product.metafields.my_fields.product_for_only_oily_skin_img != blank %}
<img src="{{ product.metafields.my_fields.product_for_only_oily_skin_img }}" alt=" {{ product.metafields.my_fields.product_for_only_oily_skin_tx }}">
{{ product.metafields.my_fields.product_for_only_oily_skin_tx }}
{% endif %}
Solved! Go to the solution
This is an accepted solution.
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
This is an accepted solution.
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
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
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024