Adding collections Metafields to product page

Hi all!

I created 2 collection metafields: collection.metafields.my_fields.vendor_image & collection.metafields.my_fields.vendor_description.

I’d now like to add the content from them to a product page - the idea is to bring vendor image and a short description below the product. I filled the metafields for a collection that has the same name as a vendor.

I would just need to “print out” those 2 fields on the product page, but with my skill level, I’m lost. I managed to add product-related data, but this is too much. Hope you can help!

1 Like

@hellekim

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

Thank for your reply @KetanKumar !

It is not on the website as it really doesn’t work :slightly_smiling_face:

I have tried different versions of this:

{% assign vendor_collection = product.vendor | handleize %}

{{ collection.metafields.my_fields.vendor_description[vendor_handle] }}
&
{{ collection.metafields.my_fields.vendor_description }}
&
{{ collection.metafields.my_fields.vendor_description[memobottle] }}