hi guys!
I am having an issue with my metafield image showing in my collapsable row. I have used the below to insert the meta field into a liquid block
{% if product.metafields.custom.details !=blank %}
{% endif %}
but it now shows ‘‘no image’’ instead of showing the image
please help!!!
Hi @pickupurjacket ,
Can you share your store URL
Hello @pickupurjacket
Once you Log in to the Admin, then process the following steps:
1: Go to Settings ->metafields → Product metafield definitions
2: Find the meta field which is used for the image and copy the exact label and use it in your code.
It may resolve your issues, sometimes Namespaces are different not always custom Namespaces are used.
If you find our reply helpful, please hit Like and Mark it as a Solution.
An award-winning North American Shopify Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
EBOOST
January 12, 2023, 2:57pm
5
Hi @pickupurjacket
May I suggest code below
{% if product.metafields.custom.details !=blank %}
{% endif %}
EBOOST
January 12, 2023, 3:36pm
7
Hi @pickupurjacket ,
Could you share metafileds screen and product detail admin and customize screen? I saw HTML show incorrect here. I will help to check it.
EBOOST
January 13, 2023, 2:23am
9
Hi @pickupurjacket
Because you used a list type. So you can try to code below
{% if product.metafields.custom.details != blank %}
{% for item in product.metafields.custom.details.value -%}
{%- endfor %}
{% endif %}
Remember delete all content in the custom liquid before after that paste code above to this field
it works!!! thank you sm!!!
could you please tell me what should i code if i use the non-list file metafields?
EBOOST
January 13, 2023, 3:41am
12
Hi @pickupurjacket
This one ( previos post)
{% if product.metafields.custom.details !=blank %}
{% endif %}