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 -
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?
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!
Hi Is there a simple answer for this? I also use Metafields from shopify for some extra info about my product. But don’t know how to get the image and text showing through builder? I found a video at the forum, but that was way over my head.
Hi @DeTheeplantage! It sounds to me like you just want to pull in the product data and bind it to an element to display on your page. Depending on how your page is laid out, you probably would just want to pull a product box on to the page, and then you can add more components to the product box itself (text elements, image element, etc) .
Once that is pulled onto the page, click the element you want to bind data to, and within the data binding flow you should be able to set to any field within the productInfo. I highly recommend checking out this tutorial: https://www.builder.io/blog/builder-data to see how to set up dynamic data binding
If you still get stuck, feel free to share a builder content page or contact our support team directly and we can take a further look!
We’ve created a forum post here that goes over the steps for blog pages, but, you can follow these steps for product pages too. Let us know if you have any question!