Shopify themes, liquid, logos, and UX
Hello
I have defined one of the product section blocks to use an image/file. text and multitext meta fields... all are shown along with the image when all the related data is added on product page, but when the image is not uploaded or empty it still shows a placeholder instead.
Why is it doing so? and how can we hide it? Screenshots attached.
Found out on my own...
I ended up using a custom liquid block and placing the metafields in the {{metafield}} format to show and using {{if statement}} for not showing data if not there.
Please add if statement
{% if product.metafields.custom.save_xx_eur != blank %}
{{ product.metafields.custom.save_xx_eur }},// add you metafield value
{% endif %}
like
In which file can I paste this code? I don't find it.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024