Skip to main content

How to Set Up a Product Siblings (Product Variations) Block in Product Page

The Product Variations Block lets you display linked product siblings — such as different colors or styles — directly on the product page, so customers can easily switch between them.

There are two ways to configure this, depending on how you want to manage swatch visuals:


Method 1: Product Siblings with Custom Metafield Images

Use this method if you want full control over the swatch visuals — for example, showing a specific color swatch or a cropped image that differs from the product's main photo.

Product siblings swatch

Step 1: Set up the Metaobject "Color" (if not already present)

  1. In your Shopify admin, go to Settings > Content > Metaobjects.
  2. Click Add definition.
  3. In the Name field, type Color.
  4. Add fields like Label, Color, or Image.
  5. Click Save.

Product siblings

Step 2: Create a Product Metafield — Color

To store color values or images for product variations, create a Color metafield.

  1. In the Shopify Admin, go to SettingsMetafields and metaobjectsProducts.
  2. Click Add definition.
  3. Enter a name (e.g., Color) and set the Type to Metaobject.
  4. Select the Color metaobject from the list.
  5. Click Save.

Product metafield color

Step 3: Create a Product Variations Metafield

This metafield will store a list of related product siblings.

  1. In SettingsMetafields and metaobjectsProducts, click Add definition.
  2. Enter a name (e.g., Product Variations).
  3. Select Product as the field type and choose List of products.
  4. Click Save.

Product variations metafield

Step 4: Assign Metafields to Products

Now apply the metafields to each product.

  1. Navigate to Products in the Shopify admin.
  2. Select the product that will have variations.
  3. Scroll to the Product Metafields section.
  4. Click the Color field and assign the appropriate color or image.
  5. Click Product Variations and add all related products (including the current product).
  6. Click Save.
note

The order of products in the Product Variations metafield reflects the order in which the swatches appear on the product page.

Repeat this step for every sibling product, keeping the product order consistent each time.

Connect Variations for Each Product

To ensure seamless linking between products, repeat Step 4 for every sibling product.

Product siblings color

Step 5: Configure the Product Page

Now set up the Product Variations Block in your theme.

  1. Go to Online StoreThemes, then click Edit theme.
  2. Open the Product template.
  3. In the Product information section, add the Product siblings block.
  4. Set the Option Name (displayed above the swatches).
  5. Select the Input Type - Swatch/Images or Button.
  6. Enter the namespace and key of the Color metafield (e.g., custom.color). You can find this in the Metafield Definition settings.
  7. Click the Dynamic Source icon and select the Product Variations metafield as the product list. 8. Click Save.

How to configure the Product Page to set up the Product Siblings block using swatches (metaobject) →

Product siblings admin

Method 2: Product Siblings with Product Images

Use this method if you want the swatch to display each product's existing featured image — no Metaobject or Color metafield required.

Instead of a custom color swatch, each sibling product's featured image is used as the visual indicator. A Label metafield is used to display a text label for the currently selected option. You still need a Product Variations metafield to link the sibling products together.

Product siblings

Step 1: Create a Product Metafield — Label

To display a custom label for selected option.

  1. In the Shopify Admin, go to SettingsMetafields and metaobjectsProducts.
  2. Click Add definition.
  3. Enter a name (e.g., Label) and set the Type to Single line text.
  4. Click Save.

Step 2: Create a Product Variations Metafield

This metafield will store a list of related product siblings.

  1. In SettingsMetafields and metaobjectsProducts, click Add definition.
  2. Enter a name (e.g., Product Variations).
  3. Select Product as the field type and choose List of products.
  4. Click Save.

Product variations metafield

Step 3: Assign Metafields to Products

Now apply the metafields to each product.

  1. Navigate to Products in the Shopify admin.
  2. Select the product that will have variations.
  3. Scroll to the Product Metafields section.
  4. Click the Label and complete it.
  5. Click Product Variations and add all related products (including the current product).
  6. Click Save.
note

The order of products in the Product Variations metafield reflects the order in which the swatches appear on the product page.

Repeat this step for every sibling product, keeping the product order consistent each time.

Connect Variations for Each Product

To ensure seamless linking between products, repeat Step 3 for every sibling product.

Step 4: Configure the Product Page

Now set up the Product Variations Block in your theme.

  1. Go to Online StoreThemes, then click Edit theme.
  2. Open the Product template.
  3. In the Product information section, add the Product siblings block.
  4. Set the Option Name (displayed above the swatches).
  5. Select the Input Type - Product image.
  6. Enter the namespace and key of the Color metafield (e.g., custom.label). You can find this in the Metafield Definition settings.
  7. Click the Dynamic Source icon and select the Product Variations metafield as the product list.
  8. Click Save.

How to Configure the Product Page: Product Siblings with Swatches


How to Configure the Product Page: Product Siblings with Product Images