Meta field image not showing in collapsable row

Hi

I am having an issue with my meta field image showing in my collapsable row. I have used the below to insert the meta field into a liquid block

The images is not showing, however, just a placeholder icon. See screenshot

The site is https://ebony-design.myshopify.com/ issue is on the main product page under the drop down Fabric

Password: dawlaw

Any help would be much appreciated!

@LitCommerce could you maybe help?

Hi @Bird_on_a_Wire ,

Please send me the screenshot of the metafields you created, I will check it for you

Hi @Bird_on_a_Wire ,

Please change all code:


=>


Hi @LitCommerce

I changed the code as suggested, now the screen shows a block with the words “No Image” Please see below screenshot.

FYI, here are the settings for the meta field I am trying to reference just in case that’s helpful!

Hi @Bird_on_a_Wire ,

Did you go to the product and upload the image?

Yip, the image is uploaded to the product

Hi @Bird_on_a_Wire ,

Did you create Metafields as List Files?

Please change code:

{%- for leather in product.metafields.custom.leather.value -%}
    
{%- endfor -%}

Hope it helps!

Hi @LitCommerce - sorry not sure where to find that code to change…

Hi @Bird_on_a_Wire ,

Please change code:


=>

{%- for leather in product.metafields.custom.leather.value -%}
    
{%- endfor -%}

Thank you! All sorted!

1 Like