Show collection's description only from custom collection on product page

Antho3
Tourist
6 0 3

Hi everyone, 

I can't figure out how to show the description of my custom collection on my product pages.

Here's the code i use : 

{% for collection in product.collections %}
             {% if collection.collection_type == 'custom' %}
            <div id="collection-description">{{ collection.description }}</div>
                {% endif %}
{% endfor %}


This code return nothing.

But if i filter on the id, it's working... for exemple :

 {% if collection.id == 123123 %}


 Does anyone knows how i can exclude the automatics collection from the content i want to show ?

Thanks for your help !

0 Likes
Antho3
Tourist
6 0 3

Hi ! 

I'm still looking for a way to show only the description of a custom collection.

Does anyone find a way to select only a type of collection with {{ collection.description }} ?

Thanks,

Antho

0 Likes
Antho3
Tourist
6 0 3

Anyone ?

0 Likes