I’ve seen numerous posts here with solutions that provide a code snippet that suppose to work but no one says where you should put it. In my case I’ve created multiple metfields with the option to upload a file (image), I use it in my product pages section to display certain images, but I have multiple sections and if I do not add images to each metafield then it is displayed without an image. I just want to know where should I put this code:
{% if product.metafields.custom.product_page_image_banner_10 != blank %}
{{ product.metafields.custom.product_page_image_banner_10 }},
{% endif %}