Hey guys.
I am looking for a way to add a small vendor logo image that is attached to the product so it is pulled from the product and appears automatically on the product template page. I have tried a dynamic image but it has no options for customization. Is there acode i can use for the product back end or even an app?
Thanks in advance.
Shopify doesn’t have a built-in vendor logo field, but you can achieve this in a clean way using metafields:
-
In your Shopify admin, go to Settings > Custom data > Products.
-
Create a new metafield definition called something like “Vendor logo” with type = File (image).
-
On each product, upload the correct logo image in that metafield.
-
In your product template file (main-product.liquid or similar), insert code where you want the logo to appear:
{% if product.metafields.custom.vendor_logo %}
<img
src="{{ product.metafields.custom.vendor_logo | image_url: width: 200 }}"
alt="{{ product.vendor }} logo"
style="max-width:150px; height:auto;"
>
{% endif %}
This way, every product will automatically pull in its vendor logo once you’ve assigned it.
If you prefer not to use code, there are also “brand/vendor logo” apps in the Shopify App Store that let you manage and display logos across your store.
Best regards,
Sinh Developer, from Tipo
Thank you for the reply but unfortunatley this did not work. I have sorted it though by following the instructions in this video - How to Display Vendor logo in Shopify – Poolmagasinet
This also links to a vendor collection page.