Product comparison shows up to four products next to each other with rows of details, such as fabric, fit, sizes and care. Each row reads its value from the product itself, so the table stays up to date when you edit products. Use it to help shoppers choose between similar styles.

## Add the section

1. In your Shopify admin, go to **Online Store** > **Themes** > **Customize**.
2. Click **Add section** and choose **Product comparison**. It starts with five sample rows.
3. Under **Products**, select up to four products.
4. Click each **Row** block to set what it shows. Click **Add block** > **Row** to add more (up to 12).

![Product comparison table with three products across the top and rows for category, sizes, colours and availability](../_images/product-comparison-table.jpg)

## Settings

| Setting | What it does |
|---|---|
| **Heading** | The section heading. |
| **Text** | Optional text under the heading. |
| **Products** | Up to 4 products to compare. |
| **Layout** | **Table**: products as columns and details as rows. On small screens the table scrolls sideways and the row labels stay in view. **Cards**: one card per product, with its details listed underneath. |
| **Image ratio** | Portrait, Square, or No image. |
| **Show price** | Shows each product's price (or price range). |
| **Show product link** | Shows a button linking to each product. |
| **Color scheme** | The section's colors. |

## Blocks

### Row

| Setting | What it does |
|---|---|
| **Label** | The row name, such as "Fabric". |
| **Value** | Where the value comes from: **Metafield**, **Product option** (all its values, for example every size), **Vendor**, **Product type**, **Availability** (in stock or sold out), or **Rating** (stars from your reviews app). |
| **Metafield or option name** | For a metafield, enter namespace.key, for example custom.fabric. For an option, enter its name, for example Size. Not used for the other values. |

A product without a value for a row shows a dash. A true/false metafield shows a tick for "true" and a dash for "false".

## Tips

- Create product metafields in **Settings** > **Custom data** > **Products**, then fill them in on each product. Copy the namespace and key exactly (for example custom.fabric).
- The **Rating** row reads the standard product rating that most review apps fill in. If a product has no rating, it shows a dash.
- Keep labels short ("Fabric", "Fit", "Care") so the table stays readable on phones.

## Related

- [Product page](/docs/atelier/product-page)
- [Product grid](/docs/atelier/featured-collection)
- [Use metafields with Atelier](/docs/atelier/metafields)