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.

Ella offers 2 type for Product Variant: Dropdown and Square / Rectangle / Swatch. For more information, see Swatch.

Setup Color Variant

Ella offers 4 type for Color Variant: Default, Advanced Color, Metafields and Metaobject.

01: Advanced Color:

  1. From your Shopify admin, go to Online Store -> Themes.

  2. Find the theme that you want to edit, and then click Customize.

  3. Click Theme settings -> General.

  4. Scroll to Swatch and choose Type as Advanced Color.

The naming convention for PNG images:

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

02: Metafields:

  1. From your Shopify admin, go to Online Store -> Themes.

  2. Find the theme that you want to edit, and then click Customize.

  3. Click Theme settings -> General.

  4. Scroll to Swatch and choose Type as Metafields.

*How to add a new Metafields?

  1. From your Shopify admin, go to Settings -> Custom data.

  2. Click Variants → Add Definition.

  1. Please enter the correct Namespace and Key as we noted below.

Name: Variant Color
Namespace and key: custom.variant_color
Select content type: Text

*How to insert content for Product Metafields?

  1. From your Shopify admin, go to Products -> All products.

  2. Find and choose the product that you want to edit.

  3. Find and choose the variant that you want to edit.

  4. In the Metafields, you need to insert "Color codes" or "Image with PNG format" for "Variant Color".

  • Image with PNG format

After that, please 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: "Dark Gray Custom", you will upload the png image is dark-gray-custom.png

  • Color codes

03: Default:

  1. From your Shopify admin, go to Online Store -> Themes.

  2. Find the theme that you want to edit, and then click Customize.

  3. Click Theme settings -> General.

  4. Scroll to Swatch and choose Type as Default

For more information, see Adding images to product variants.

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 metafields.

04: Metaobjects:

  1. From your Shopify admin, go to Online Store -> Themes.

  2. Find the theme that you want to edit, and then click Customize.

  3. Click Theme settings -> General.

  4. Scroll to Swatch and choose Type as Metaobjects.

*Connect a variant to a product or category metafield

  1. From your Shopify admin, go to Products.

  2. Click the product that you want to edit.

  3. In the Category section under media, select the category that matches your product.

  1. In the Variants section, click + Add options like size or color.

  2. 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

  1. 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.

  1. Click Save to save the product.

  • Shopify only supports adding colors and images to the Metaobject Color.

  • Not all Categories have Metaobject Color available.

For more information about Variant Metaobject, you can refer to this link or contact Shopify directly.

Last updated