https://nt2ztk-pm.myshopify.com This is my site .
jhj
i want something like this , i Just want one Collection Name as one product is listed in many collections.
i tried many codes but didn’t work.
A Shopify store owner wanted to display collection names beneath product titles in their featured collection section, with each product showing only one collection name despite being listed in multiple collections.
Initial Attempts:
Solution Provided:
A developer (DaisyVo) shared working Liquid code to add to the card-product.liquid file:
<div>
{% for collection in card_product.collections %}
{{ collection.title }} <br/>
{% endfor %}
</div>
This code loops through all collections associated with a product and displays their names.
Final Implementation:
Status: Resolved - Collection names now display as requested with proper positioning and styling.
https://nt2ztk-pm.myshopify.com This is my site .
i want something like this , i Just want one Collection Name as one product is listed in many collections.
i tried many codes but didn’t work.
You are developer or business owner? For the developer it is 2 mins work, just focus on your business and delegate the development work to developers.
You need to find product card liquid snippet, find where the product.title is populated and add collection.title under it. This is the high level guide.
hello @ParthPapat
I am a Shopify developer. Please give me Collaborator access to your account and I will do it for you.
Thanks
Hey I’ve mailed you collaborator code ,please do check it.
Thank You !
i tried this method ,it’s not working .That’s why i am asking for help.
HEELO
i add you please approve me
thanks
approved.
Hi @ParthPapat
**Hi @ParthPapat **
I hope you are well.
Since a product can belong to multiple collections, it’s possible to display the names of all associated collections. To achieve this, you can edit the card-product.liquid file: (https://prnt.sc/SCeoKQSbOkD9) and add the following code:
<div>
{% for collection in card_product.collections %}
{{ collection.title }} <br/>
{% endfor %}
</div>
For example, if a product belongs to three collections, the output will look like this:
Example Screenshot.
Please let me know if you have any questions or need further assistance.
Best regards,
Daisy - Avada Support Team.
hey ..its done …Thank you for the help and your time
that worked like butter ,thank you so much for the help and your precious time !
Thank You So much, I just have one small request .I wanted collection name in between product name and the price and in little lighter color (May be Grey ) can you please help me with it .
Thank you soooo much, you are amazing .Really appreciate your help ![]()
hello @ParthPapat
If your work is done then accept my solution and if you need any help in future then let me know.
Thanks