Where to put product.collections ?

Highlighted
Tourist
8 0 2

Hi everyone,

Following this topic, I'm wondering how and where should I put the put.collections in my code in order to display the collections objects are belong to (on product page).

Thank you for your help !

0 Likes
Highlighted
Shopify Partner
7457 1032 2592

Hello, @Juliux 

Welcome to the Shopify community!
and Thanks for your Good question.

you can put this code on product section, product-template your find this template or section on theme edit code

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
Tourist
8 0 2

Hi @KE ,

Thank you for your kind help ! I've tried to put the code

{% assign product_collection = product.collections.first %}
{% if product_collection %}
This product is part of my {{ product_collection.title | link_to: product_collection.url }} Collection
{% endif %}

 either in product.liquid (at the end of the code) as well as in a new template named "product.collections.liquid". None of theses solutions seems to work as I don't see any difference in my product page

Thank you for your help !

0 Likes
Highlighted
Shopify Partner
7457 1032 2592

no i think is wrong 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
1 Like
Highlighted
Tourist
8 0 2

Yes, it's my opinion too

Do you have any idea on how to achieve it ?

1 Like
Highlighted
Shopify Partner
7457 1032 2592

@Juliux 

I need your store login details. Yes, I know your login details are confidential. For this second option, I have added your store to my Shopify partner account so I will check your code easily and manage what you think about it?

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
Tourist
8 0 2

Thank you for your help @KetanKumar , but I cannot provide the login details (they belongs to the customer of the shop).

1 Like
Highlighted
Shopify Partner
7457 1032 2592

@Juliux 

Thanks for the update.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes