# Product Variant

You add variants to a product that comes in more than one option, such as size or color. Each combination of option values for a product can be a variant for that product. For more information, see [Variants](https://help.shopify.com/en/manual/products/variants).

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

{% hint style="info" %}
Ella 7 offers 2 type for Product Variant: Dropdown and Pills. For more information, see [Swatch](broken://pages/IuQJzGl1v9oavYN8Mchz).
{% endhint %}

### How to setup Color Variant?

* From your Shopify admin, go to **Online Store** -> **Themes**.
* Find the theme that you want to edit, and then click **Customize**.
* Click **Theme settings.**
* Scroll to **Variant pills** and choose **Type.**

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

{% hint style="info" %}
Ella 7 offers 3 type for Color Variant: Default, Advanced Color and Metaobject.
{% endhint %}

#### 01. Default:

* From your Shopify admin, go to **Online Store** -> **Themes**.
* Find the theme that you want to edit, and then click **Customize**.
* Click **Theme settings ->** **General.**
* Scroll to **Swatch** and choose **Type** as **Default**

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

{% hint style="info" %}
For more information, see [Adding images to product variants](https://help.shopify.com/en/manual/products/product-media/add-images-variants).
{% endhint %}

![](/files/vFKBcamIf2FmYCaIgOl1)

{% hint style="info" %}
When using languages other than English, color variations may not be displayed correctly because Shopify does not support them. To circumvent this limitation, consider utilizing images for product variants or metaobject.
{% endhint %}

#### 02. Advanced Color:

* From your Shopify admin, go to **Online Store** -> **Themes**.
* Find the theme that you want to edit, and then click **Customize**.
* Click **Theme settings ->** **General.**
* Scroll to **Swatch** and choose **Type** as **Advanced Color.**

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

{% hint style="success" %}
When selecting this option, there are 2 cases::

* If the color name is a basic color (<http://www.w3schools.com/tags/ref_colornames.asp>) then the color will be displayed automatically.
* If the color name is a special name (not a basic color), then you need to upload a PNG image with a certain naming convention.
  {% endhint %}

#### ***The naming convention for PNG images:***

{% hint style="info" %}
Upload an image with the same name as the color name (Go to Content → Files -> Upload files).

**Naming convention**: Lower cap and use a hyphen "-" to replace white space if your color image name has the white space. For example: your special color will have this name: "Holo Rainbow", you will upload the png image is holo-rainbow\.png
{% endhint %}

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

#### 03. Metaobjects:

* From your Shopify admin, go to **Online Store** -> **Themes**.
* Find the theme that you want to edit, and then click **Customize**.
* Click **Theme settings ->** **General.**
* Scroll to **Swatch** and choose **Type** as **Metaobjects.**

<figure><img src="/files/6s262qWFzFOkU8OnPYNX" alt=""><figcaption></figcaption></figure>

#### \*Connect a variant to a product or category metafield

1. From your Shopify admin, go to [Products](https://admin.shopify.com/products).
2. Click the product that you want to edit.
3. In the **Category** section under media, select the category that matches your product.

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

4. In the **Variants** section, click **+ Add options like size or color.**
5. If a compatible category or product metafield is available to connect to, then select it. The option values are automatically filled with any entries you have added to the metafield. You can select more option values or create new ones

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

6. Optional: If you want to add custom option values, then click **Edit**, and then click **Add new entry**. Fill out the entry fields, and then click **Save.**

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

7. Click **Save** to save the product.

{% hint style="info" %}

* Shopify only supports adding colors and images to the Metaobject Color.
* Not all Categories have Metaobject Color available.
  {% endhint %}

{% hint style="info" %}
For more information about Variant Metaobject, you can refer to this [link](https://help.shopify.com/en/manual/custom-data/metafields/add-variants-with-metafields) or contact Shopify directly.
{% endhint %}

### **How to setup** Variant Picker Block on product pag&#x65;**?**

* From your Shopify admin, go to **Online Store** **->** **Themes**.
* Find the theme that you want to edit, and then click **Customize**.
* Choose **Product Template** from the dropdown window.

<figure><img src="/files/9zebEyyZN2LqlR4FvYKQ" alt=""><figcaption></figcaption></figure>

* In the **Details** block, find the Variant Picker Block (if not found let add it).

<figure><img src="/files/oIekC4tE4OUpWQq42zPW" 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://halosoft.gitbook.io/ella-7-documentation/product-page/product-information/product-variant.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.
