From the API docs, to list all custom collections for a certain product_id:
GET /admin/custom_collections.json?product_id=632910392
Response:
HTTP/1.1 200 OK
{
"custom_collections": [
{
"body_html": "<p>The best selling ipod ever</p>",
"handle": "ipods",
"id": 841564295,
"published_at": "2008-02-01T19:00:00-05:00",
"sort_order": "manual",
"template_suffix": null,
"title": "IPods",
"updated_at": "2008-02-01T19:00:00-05:00",
"image": {
"created_at": "2012-12-11T12:01:29-05:00",
"src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/collections/ipod_nano_8gb.jpg?0"
}
}
]
}
Answer from Lydia Krupp-Hunter on Stack OverflowShopify
help.shopify.com โบ en โบ api โบ reference โบ products โบ customcollection
Shopify Dev Docs
Whether you're just getting started, deep in the development process, or ready to distribute and monetize your work, Shopify's docs, dev tools and frameworks make building easy and efficient. Extend Shopify's core functionality with apps that integrate into Shopify's admin, online store, checkout and more. ... Help merchants express their unique brand in their storefront by building a custom theme.
Shopify
shopify.github.io โบ liquid-code-examples โบ example โบ collection-list
Collection list | Shopify Liquid code examples
February 21, 2019 - --> {%- if collection.image -%} {%- assign collection_image = collection.image -%} {%- elsif collection.products.first and collection.products.first.images != empty -%} {%- assign collection_image = collection.products.first.featured_image -%} {%- else -%} {%- assign collection_image = blank -%} {%- endif -%} <a href="{{ collection.url }}"> <img src="{{ collection_image | img_url: '480x' }}" alt=""> {{ collection.title }} </a> </li> {%- endfor -%} </ul>
Shopify get current collection - Stack Overflow
I am new to Shopify and learning it right now. I am on collection page, is there a way I can get current collection? For example, I have following collections category 1 Sub cat 1.1 Sub ca... More on stackoverflow.com
How can I add a second description to each collection bottom?
Hi! I would like to add a second description at the bottom of each collection. The description will be different for each collection. How can I do this? Iโm using Impulse Impulse v.1.0 For example this is a collection page that I would like to add a second description below the products ... More on community.shopify.com
If product is in a specific collection, show specific code on page
So I am working on a product specifications table for our website and I would like for the code to show certain aspects of that table based off an if else or case statement. For example, we have various appliances and instead of having to make a product template for refrigerators, microwaves, ... More on community.shopify.com
Loop through a collection using a collection ID
Hi there, Trying to figure out how to loop through a collection using the collection ID. Is this possible? Right now Iโm using the collection name, ie: collections['collection-name'].products but needing to transition away from that since the collection name can change over time. More on community.shopify.com
Videos
Shopify Community
community.shopify.com โบ technical q&a
How can I add a second description to each collection ...
Hi! I would like to add a second description at the bottom of each collection. The description will be different for each collection. How can I do this? Iโm using Impulse Impulse v.1.0 For example this is a collection page that I would like to add a second description below the products ...
Published ย February 22, 2023
Shopify
shopify.dev โบ docs โบ api โบ liquid โบ objects โบ collection
Liquid objects: collection
The handle of the collection. ... The ID of the collection. ... The image for the collection. This image is added on the collection's page in the Shopify admin.
Shopify Community
community.shopify.com โบ technical q&a
If product is in a specific collection, show specific code on ...
April 14, 2022 - So I am working on a product specifications table for our website and I would like for the code to show certain aspects of that table based off an if else or case statement. For example, we have various appliances and iโฆ
Shopify Community
community.shopify.com โบ shopify discussion
Loop through a collection using a collection ID
May 15, 2023 - Hi there, Trying to figure out how to loop through a collection using the collection ID. Is this possible? Right now Iโm using the collection name, ie: collections['collection-name'].products but needing to transition aโฆ