> For the complete documentation index, see [llms.txt](https://help.brickspacelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.brickspacelab.com/slab/guides/product/display-linked-products.md).

# Linked products

Linked products let customers move between related items (for example colors or styles) without leaving the product page. Slab uses the **Product sibling options** block for this.

## Steps

1. In Shopify admin, create a product metafield definition for **`custom.linked_collection`** (collection reference).
2. For each product that should show siblings, set that metafield to a collection that contains the related products.
3. Open **Online Store > Themes > Customize** and load a product template.
4. In the **Main product** section, add **Product sibling options** where you want the links to appear.
5. In the block settings, confirm **Product** matches the product you are editing (or pick one while testing).
6. Choose **Swatch selection**: **Buttons** for a small set of siblings, or **Dropdowns** when there are many.
7. Save the theme, then open a product that has **`custom.linked_collection`** set and confirm the options appear on the storefront.

## How it works

* The block reads related products from `product.metafields.custom.linked_collection`.
* Nothing renders on the storefront until that metafield points to a collection with products.
* In the theme editor, you may see a setup hint when the metafield is empty.

## Block settings reference

All options—swatches, labels, grid layout, spacing, colors, button size, and visibility—are documented on the [Product sibling options](/slab/content/blocks/products/sibling-options.md) block page.

## Troubleshooting

* Confirm each product has **`custom.linked_collection`** filled in.
* Confirm the linked collection contains the products you expect.
* Confirm the block is on the product template customers actually use.
* If the block never appears, check **Visibility** on the block (device limits can hide it).


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.brickspacelab.com/slab/guides/product/display-linked-products.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
