'NO IMAGE' Showing On Collapsible Row Set To Liquid, File(Image) Metafields

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

yes ofc

url:https://0207d1.myshopify.com/admin

password:123

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.

Hi @pickupurjacket

May I suggest code below

{% if product.metafields.custom.details !=blank %}
  
{% endif %}

sorry,it doesnt work :sob:

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.

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?

Hi @pickupurjacket

This one ( previos post)

{% if product.metafields.custom.details !=blank %}
  
{% endif %}

thank you!!!

1 Like