Hi all! We are still relatively new to Shopify and opening an online boutique soon. We are trying to create several different manual collections that relate to certain products as in “Pairs well with..” to go below the specific product on their detailed page. However, when we add a collection to the bottom of a product specific page, it applies that collection to ALL of our products specific pages. Is there a way to put different collections under each product?
Any help would be appreciated, thank you so much in advance!
Hi @RachCass ,
It seems like you want to list out assigned collections to a particular product on the product detail page. We can achieve it using the all_products global object.
Please check the attached screenshot:
Please add the below code in your product.liquid file:
{% for collection in all_products[product.handle].collections %}
{{ collection.title }}
{% endfor %}
Thank you.
Hi @RachCass ,
Please send your site and if your site is password protected, please send me the password. I will check it.
Hi @LitCommerce , our site is seventeenohfourboutique.com and the password is Br33zy!
Thank you in advance!
Hi @RachCass ,
Please send me the code of featured-collection.liquid file, I will help you to change it so that the product will show in the first collection.
For example, product A is in 3 collections, 1, 2, 3. It will display a list of products in collection 1.
Hope it is clear to you.