Use metafields with Atelier
Published 19 minutes ago
Metafields let you store extra information on a product — a size chart, the fit, the fabric — and show it on that product's page. You fill the information in once per product in Shopify admin, and Atelier shows it in the right place. This guide lists the metafields Atelier reads on its own and the blocks you can connect to any metafield.
Two ways Atelier uses metafields
- Automatically. A few metafields have a fixed name that Atelier looks for. If a product has a value, the theme uses it with no setup in the theme editor.
- Connected by you. Many block settings can be connected to a metafield of your choice in the theme editor (Shopify calls this a dynamic source). Each product then shows its own value.
Metafields Atelier reads automatically
| Metafield | Type | What Atelier does with it |
|---|---|---|
custom.size_chart |
Multi-line text | The Size chart block on the product page shows this chart instead of the block's own chart. See Add a size chart to one product. |
reviews.rating and reviews.rating_count |
Rating and Integer (filled by your reviews app) | Star ratings on the product page (Rating block), on product cards (Theme settings > Product reviews > Show stars on product cards), in the Product comparison section, and in the rating data search engines read. |
seo.hidden |
Integer | Read by Shopify itself, not the theme. A value of 1 hides the product or page from search engines, your sitemap and your store's search. Useful for a gift wrap product. |
Color swatches also come from metafields — Shopify's category metafield for color. See Set up color swatches.
Reviews metafields
You don't create the reviews metafields yourself. Most reviews apps save each product's average rating and number of reviews in these metafields. Check your app's settings or help pages to confirm it does. Once it does, Atelier's stars appear — the Rating block is already in the default product template. In Theme settings > Product reviews you can also:
- Show review count on product cards
- Add ratings to search engine data — turn this off if your reviews app already adds rating data, so search engines don't see it twice.
Create a metafield definition
Before you can fill in or connect a metafield, create its definition:
- In Shopify admin, go to Settings > Custom data > Products.
- Click Add definition.
- Enter a Name, for example "Size chart". Shopify fills in the Namespace and key (for example
custom.size_chart). Check it matches exactly when Atelier expects a specific key. - Choose a Type, for example Multi-line text.
- Click Save.
Now open any product in Shopify admin: the field appears in the Product metafields card near the bottom of the page, ready to fill in.

Connect a block to a metafield
These product page blocks are designed to be connected:
| Block | Setting to connect | Good metafield type |
|---|---|---|
| Fit details | Fit, Model information, Fit note | Single line text |
| Collapsible tab | Content | Rich text or Multi-line text |
| Text | Text | Single line text |
| Grouped products | Products | Product (list of products) |
To connect a setting:
- Go to Online Store > Themes > Customize and open a product template.
- Click the block, for example Fit details.
- Next to the setting, click the Connect dynamic source icon and choose your metafield.
- Save.
Each product now shows its own value. In the Fit details block, empty fields are hidden, so products without a value simply don't show that line.
Show a metafield in Product comparison
The Product comparison section compares up to four products in rows. To show a metafield in a row:
- Add a Row block and set Value to Metafield.
- In Metafield or option name, enter the namespace and key, for example
custom.fabric. - Enter a Label, for example "Fabric".
True or false metafields show a tick or a dash. You'll need to create the custom.fabric (or other) definition and fill it in on each product — Atelier doesn't create it for you.
Tips
- Name your definitions clearly ("Fabric", "Fit", "Model information") — the name is what you see when filling in products and when connecting blocks.
- You can fill in metafields for many products at once with Shopify's bulk editor (select products in Products > Bulk edit, then add the metafield columns).
- Metafield values are translatable with the Translate & Adapt app.