> For the complete documentation index, see [llms.txt](https://staylime.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://staylime.com/docs/volume-themes/collections-and-products/collection-page/related-collections.md).

# Related collections

Link a product to its collection and its brand in Volume: the Related collections section and block, the main collection order, and the card images.

Related collections sends shoppers from a product to its collection and to the rest of that brand. It is a section on product templates, and the same block inside **Product overview**, **Featured product**, and **Quick view**.

{% hint style="info" %}
The section is available only on product templates. In the theme editor, open a product template and add **Related collections**, or add the **Related collections** block to **Product overview**, **Featured product**, or **Quick view**. The block is limited to one per section.
{% endhint %}

### How to add

{% stepper %}
{% step %}

#### Choose the collection

Volume picks one main collection, in this order:

1. The **Main collection** setting on this section or block.
2. If that is empty, the product metafield `custom.main_collection`.
3. If that is empty too, the first collection the product belongs to.

Volume does not create the metafield. In Shopify admin, go to **Settings → Custom data → Products** and add a definition. The type is **Collection**. The namespace and key must be `custom.main_collection`.

**Collection by brand** and **Shop the collection** stay hidden until a main collection is found. **Shop by brand** does not need one.
{% endstep %}

{% step %}

#### Turn the cards on

Three checkboxes, all on by default:

* **Collection by brand**\
  The card reads `All`, then the vendor and the collection title. The caption is `Collection by brand`. The link opens that collection filtered by the vendor.
* **Shop by brand**\
  The card reads `All` and the vendor. The caption is `Shop by brand`. The link opens the Shopify vendor page.
* **Shop the collection**\
  The card reads `All` and the collection title. The caption is `Shop the collection`. The link opens the collection.
  {% endstep %}
  {% endstepper %}

### Images

Only the section shows images. The block inside **Product overview**, **Featured product**, and **Quick view** does not.

Each card has a **Custom image**, visible while its checkbox is on.

* **Collection by brand** and **Shop the collection**\
  Use **Custom image**, then the collection image.
* **Shop by brand**\
  Uses **Custom image**, then a file from **Content → Files**. Name the file after the vendor, keeping the original letter case. Spaces and punctuation become `_`. Use `svg`, `png`, `webp`, `jpg`, or `jpeg`. A vendor named `Acne Studios` uses `Acne_Studios.jpg`.

### Related

* [Product Page](https://staylime.com/docs/volume-themes/collections-and-products/product-page.md)
* [Quick View & Pre-order templates](https://staylime.com/docs/volume-themes/collections-and-products/product-page/quick-view-and-pre-order-templates.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://staylime.com/docs/volume-themes/collections-and-products/collection-page/related-collections.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
