Home App Docs Blog Github

Dynamic product content using Shopify metafields from Online store 2.0

Hi, I’m really stuck with this one. I’ve made a section that has a structure of image with text. Here’s the product page with that section → Blueberry Cloud Blanket Set (3PCS) – Decor Boss
Here’s the section I’m talking about -

Here’s how I want it to look-

for all the product pages with dynamic images sources from Product meta fields.

I tried to to use custom code with this query <img src="{{ product.metafields.my_fields.product_image_2 }}" > but it never worked. For some reason, Shopify ain’t rendering the image, and instead of showing me the text as the output.

Then I thought maybe to make it dynamic I might have to add a product box and then add code inside that - yes, it still never worked.

Can someone anticipate whats the issue, as Shopify isn’t rendering the backend image that has been added to the metafield? And what can be done to do so?

Thanks in advance!!

Hi @anagh,

I don’t see any Builder content on the page you linked above, can you share the link to the Builder section entry you’re working on?

Really sorry for that, here you go →

Also, please have a look at the actual shopify preview page from here - Blueberry Cloud Blanket Set (3PCS) – Decor Boss

Hi Anagh! We got a live chat from you, so we are continuing the conversation there. I’ll be sure to post the best answer once we work out the solution!

1 Like