> For the complete documentation index, see [llms.txt](https://modutheme.gitbook.io/helix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://modutheme.gitbook.io/helix/how-to-guides/how-to-set-up-product-links.md).

# How to set up product links

The **Product link** block adds a button on the product page that links to a related product — usually another colour or style that exists as a separate listing. Add one block per linked product to build a row of buttons.

{% hint style="info" %}
Looking for one product to show its colours as a single option in the variant picker and on product cards? That is a different feature, see [How to set up linked products](/helix/how-to-guides/how-to-set-up-linked-products.md).
{% endhint %}

![A row of product link buttons on the product page](https://3215967854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlyCMfKbEVTf3hu8uxjSZ%2Fuploads%2Fgit-blob-da953b1d10907e8a210f163ce5b19864a46696ad%2Fhow-to-product-links-overview.png?alt=media)

***

## Step 1 — Create the metafield definition

In Shopify admin, go to **Settings → Metafields and metaobjects → Products**, click **Add definition**, and set:

* **Name** — `Men product`
* **Namespace and key** — `custom.men_product` (or any name you prefer)
* **Type** — Product, one value

Click **Save**.

![Creating the Linked product metafield definition](https://3215967854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlyCMfKbEVTf3hu8uxjSZ%2Fuploads%2Fgit-blob-86ebc82074bbc76e6e51dbab83622b801872393e%2Fhow-to-product-links-metafield.png?alt=media)

{% hint style="info" %}
Each **Product link** block shows one button to one product, so create **one metafield per link** you want in the row. For a men's / women's / kids' set, for example, define `custom.men_product`, `custom.women_product`, and `custom.kid_product`.
{% endhint %}

***

## Step 2 — Assign the linked product on each product

Open a product, scroll to **Metafields → Linked product**, and select the related product (for example, another colour of the same style). Save, and repeat for every product in the group.

![Assigning the linked product on a product's metafield](https://3215967854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlyCMfKbEVTf3hu8uxjSZ%2Fuploads%2Fgit-blob-3f7070d9ff753281027a78dc1616e1b6f773197d%2Fhow-to-product-links-assign.png?alt=media)

***

## Step 3 — Add the Product link block and connect it

In the theme editor, go to the product page → **Product Information** section → **Details** block, and add a **Product siblings** block. Inside it, add one **Product link** block per link you want, and connect each block's **Product** field to its metafield: click the **Connect dynamic source** icon, pick the metafield, and save.

{% tabs %}
{% tab title="First link" %}
![Connecting the Women product metafield to a Product link block](https://3215967854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlyCMfKbEVTf3hu8uxjSZ%2Fuploads%2Fgit-blob-206f1ad8251d4d094d587c9e6a584361ecbc46f5%2Fhow-to-product-links-connect-women.png?alt=media)
{% endtab %}

{% tab title="Second link" %}
![Connecting the Men product metafield to a Product link block](https://3215967854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlyCMfKbEVTf3hu8uxjSZ%2Fuploads%2Fgit-blob-dcf6d0257307a5bb2b79b6cb63956f9b46b138a3%2Fhow-to-product-links-connect-men.png?alt=media)
{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Product link** blocks live inside a **Product siblings** block — they can't be added directly to **Details**. For a row of buttons, add several **Product link** blocks, each connected to its own metafield. The button whose linked product matches the product being viewed is highlighted automatically.
{% endhint %}

{% hint style="info" %}
Prefer not to use a metafield? In each **Product link** block, set the **Product** field to the target product by hand — the rest of the flow is the same.
{% endhint %}

***

{% hint style="info" icon="headset" %}
**Need help?**

Whether you have a question, run into an issue, or just need some guidance, our support team is here to help.

<a href="https://go.crisp.chat/chat/embed/?website_id=6c25581e-794a-41b4-8552-52f3de1dd1f7" class="button secondary" data-icon="comments">Chat with us</a> <a href="https://modutheme.ticksy.com" class="button primary" data-icon="ticket">Submit a ticket</a>
{% endhint %}
