> For the complete documentation index, see [llms.txt](https://lezada.docs.hasthemes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lezada.docs.hasthemes.com/product/product-metafield-for-online-store-2.0/affiliate-link-add.md).

# Affiliate link add

* To create a metafield follow the instructions -&#x20;

{% content-ref url="/pages/-MhCXSm0xeX5rHTjAfsg" %}
[How to create metafield](/product/product-metafield-for-online-store-2.0/how-to-create-metafield.md)
{% endcontent-ref %}

## Affiliate link add instead of the "Add To Cart" button

![](https://2660769954-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MccyNuK6eTGishgIP-S%2F-Mhg5aJO6wr7aQECS7aL%2F-Mhg8MTfTo3etCPuFObg%2Faffi3.png?alt=media\&token=82d4a539-dc97-400a-92b7-edf5846eed65)

## Metafield Setup

* **Metafield name: &#x20;*****Product Affiliate Link***
* **Namespace and key:**  `meta.product_affiliate_link`

```
meta.product_affiliate_link
```

![](https://2660769954-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MccyNuK6eTGishgIP-S%2F-Mhg9EMx_iVx-icBhet8%2F-Mhg9dCEin2p-VAUM-us%2Faffi1.png?alt=media\&token=b20e25a7-a25f-4571-bfe8-09c4cfa024e3)

### Add Affiliate link for a specific product <a href="#add-youtube-video-id-for-a-specific-product" id="add-youtube-video-id-for-a-specific-product"></a>

![](https://2660769954-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MccyNuK6eTGishgIP-S%2F-Mhg9fbjjsDtaH_T0Q7W%2F-Mhg9qcjaZS3U6nKKMoe%2Faffi2.png?alt=media\&token=b5324abc-f5ec-4b21-84fb-a3d90ac866e7)
