Add collection description on product page

Topic summary

A Shopify store owner using the Ella Theme encountered issues displaying collection descriptions on product pages. The problem involved accessing collection.description in the product-page.liquid file.

Initial Issue:

  • product.type conditionals worked correctly
  • collection.description and related checks failed to function
  • Goal was to display custom text or collection-specific reference numbers

Resolution:
The user solved the problem by iterating through collections using {% for collection in product.collections %}. This loop structure successfully enabled access to collection data on product pages, allowing the description logic to work as intended.

Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

Hello

I use Ella Theme Shopify. I try to add collection description in my product page in product-page.liquid. But dont work.

if product.type != “Batterie” work :white_check_mark:

if collection.description == blank : not work :cross_mark:

collection.description : not work :cross_mark:

{%- if product.type != "Batterie" -%}
  
      

        {%- if collection.description == blank -%}
        - Permet de réparer vos problèmes d'écrans et de tactiles facilement.

        - Produit neuf. Tous nos écrans sont testés avant l'envoi.

        - Kit d'outils & verre trempé offerts.

        {%- else -%}
        - Compatible avec la/les référence(s) suivante(s) : {{ collection.description | remove: '

  ' | remove: '

  '  }}

        - Permet de réparer vos problèmes d'écrans et de tactiles facilement.

        - Produit neuf. Tous nos écrans sont testés avant l'envoi.

        - Kit d'outils & verre trempé offerts.
        {%- endif -%}
      

  

        {%- else -%}
    
      

        {%- if collection.description == blank -%}
        - Permet de réparer vos problèmes d'autonomie facilement.

        - Produit neuf. Toutes nos batteries sont testées avant l'envoi.

        - Kit d'outils offerts.

        {%- else -%}
        - Compatible avec la/les référence(s) suivante(s) : {{ collection.description | remove: '

  ' | remove: '

  '  }}

        - Permet de réparer vos problèmes d'autonomie facilement.

        - Produit neuf. Toutes nos batteries sont testées avant l'envoi.

        - Kit d'outils offerts.
        {%- endif -%}
      

  

      {%- endif -%}

link of page product : https://phonefactory.fr/products/chassis-ecran-lcd-vitre-pour-samsung-galaxy-s9-s9-plus-kit-doutils

Thank you for help

solved !

i have add {% for collection in product.collections %} and that work