Shopify / Shopify/liquid

product.collections stopped listing all collections

Open
#947 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
11.9k
Forks
1.5k
Avg merge
17h 55m
Merged PRs (30d)
3

Description

We're using this property
https://help.shopify.com/themes/liquid/objects/product#product-collections

which used to work fine until a week ago. It doesn't work anymore properly on 2 stores, but works on others.

store1:

This product is part of more than 10 collections, set at visibile in store.
https://diamond-pride.myshopify.com/admin/products/12141012228

Please preview the Blank theme, it has ONLY this code, to avoid any doubt:
https://diamond-pride.myshopify.com/admin/themes/205389828?key=templates/product.liquid

product.title {{product.title}}
<br><br>
  
{% for collection in product.collections %}

collection {{ collection.title }} 
<br>

{% endfor %}

It shows only 2 collections, instead of 10+:
https://www.diamond-pride.com/products/russell-premium-ladies-t-shirt-stuttgart-reds-softball-heather-grey

store 2:
https://lakukan.myshopify.com/admin/products/11896568725
is part of multiple collections, all visible in the online store.

https://www.artsalwa.com/products/dua-when-leaving-washroom-polkadots

Please preview the Blank theme:
https://lakukan.myshopify.com/admin/themes/189759509?key=templates/product.liquid

View that product in store:
https://www.artsalwa.com/products/dua-when-leaving-washroom-polkadots

it shows NO collections

Expected:
list of all collections the product is part of, attached

Shopify support and themes@shopify don't want to look at this report, directed to forums instead.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the product.liquid snippets and linked storefront examples as the reproduction entry point; compare product.collections output with the reported collection membership. Check whether the expected result—listing all visible collections—is reproducible, then identify the relevant Liquid implementation and add coverage for the reported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.