Image picker showing "no image" when selecting image

Hey, I’m trying to create a image picker inside the main-product section on a Dawn template.

I’m using these codes:

In the {% schema %} section, I’m using this one:

{
  "type": "image_picker",
  "name": "metodo pagos",
  "limit": 1,
  "settings": [
    {
      "type": "image_picker",
      "id": "upload_image",
      "label": "Upload a image",
      "info": "aquí va la imagen"
    }
  ]
},

and this one:

{%- when 'image_picker' -%}
      
    
  

When customizing my theme, it shows the block correctly and allows me to choose the image, but it keeps showing the “no image” message

Thanks for your help, I’m just starting to learn code and I’m also new to liquid, so I’m a bit lost.

Hello @asahic ,

Please use block.settings.upload_image instead of section.settings.upload_image.

Hope this helps you,

Regards

Morgan

1 Like

Thanks!!! This solved my problem!