Show Vendor Collection Description on the product page

I have tried using, but this doesnt work.

{{ product.vendor }}

{% for c in product.collections %} {% if c.title == product.vendor %} {{ c.description }} {% endif %} {% endfor %}

Hi @thebeautystore , have you checked to be sure that the collection is available on the online store?

Thanks for your reply. Yes the collection is available on the online store.

Ok, based on the code mentioned above, a couple other reasons that nothing would show would be:

  1. The title and vendor are not exact matches (differences in capitalization, extra space added, etc.)
  2. The vendor collection description is blank.

If you want to send me the website link, that may give us some more clues but it may require having someone look at the code and the admin settings to really see what is going on.

For example https://www.thebeautystore.com/collections/featured/products/escada-fairy-love-eau-de-toilette-spray-30ml

You can see here the collection description is filled

https://www.thebeautystore.com/collections/escada?grid_list=grid-view&filter.v.price.gte=&filter.v.price.lte=

I am seeing some whitespace before and after the collection in some cases in the html, so the issue could be that the title of the vendor collection name has unwanted spaces saved in it, but that space may be coming from space in the liquid, not the actual collection name (see screenshot below).

You could try to get the vendor collection’s description using a different method to help narrow down (or work around) the issue. The code below should pull in the description that you are look for.

{{ collections[product.vendor].description }}