# Setup External/Affiliate product

External / Affiliate products are not as commonly used as other types of products in Shopify. However, the **Glozin** theme supports this special type of product. You may want to redirect customers to other sites that sell the products, and you will need to create external / affiliate products for this purpose. To set up External/Affiliate products, please follow these steps:

{% hint style="success" %}
**Step 1:** Create metafields

1. Login to your Shopify store, click to **Settings**
2. Click to **Custom data ->** **Metaobjects** and Click **Add definition**
3. Add metaobject definition with 2 fields as bellow:
   * Name: **External/Affiliate**
   * Field 1:
     * Type: **URL**
     * Name: **External Link**
   * Field 2:
     * Type: **Single line text**
     * Name: **Button Text**
4. Click **Save**
   {% endhint %}

<figure><img src="/files/yVSwPB4XbZqIdLgjkH1l" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/nkwYecCWo0H9966szLxw" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ZgHnsG7QJNGRKl907Nnz" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/AKrRSpgnLeHer44zZd3q" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
5\. Back to **Custom data -> Metafields -> Products**
6\. Add a metafield as bellow:

* Name: **External/Affiliate**
* Type: **Mixed reference**
* Validation: **External/Affiliate**
  {% endhint %}

<figure><img src="/files/NLaQyZ1F85AUMe9p2SdO" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
7\. Close Setting and setup metafield for a product.
{% endhint %}

{% hint style="success" %}
**Step 2:** Setup product

1. From your admin, go to **Products** and select the products to setup
2. Scroll down to **Metafields** and click to External/Affiliate
3. Click to **Select entry** and **Create new entry**
   {% endhint %}

<figure><img src="/files/wmOa5EAh0qxbHjGK16t8" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
4\. Add link of product to **External Link** and Add the text of the button in **Button Text**
5\. Click **Save,** **Preview** this product and you can see the result
{% endhint %}

<figure><img src="/files/TtDFBqlnerJoKUNGpiDA" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/zcuknrL2TxWj07PDCdBj" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://nextsky.gitbook.io/glozin-theme/product-page-settings/setup-external-affiliate-product.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
