Metafields
Show different ingredients, badges and details on each product by connecting blocks to metafields.
Celestine works without any custom metafields. But several product blocks become much more useful when each product has its own content. That's what metafields are for.
Blocks you can connect
| Block | Recommended metafield | Type |
|---|---|---|
| Formula badges | One per badge, e.g. custom.vegan, custom.fragrance_free | True or false |
| Tags (skin, concern) | custom.skin_types | Single line text (comma-separated) |
| Ingredients | custom.key_ingredients | Multi-line text |
| How to use | custom.how_to_use | Multi-line text |
| Specifications | custom.specifications | Multi-line text, one Label: value per line |
| Fit | custom.fit_note, custom.model_wears | Single line text |
| Text, Collapsible tab | Any text metafield | Single or multi-line text |
Connect a block
- 1In the admin, go to Settings → Custom data → Products → Add definition and create the metafield (for example
custom.key_ingredients, multi-line text). - 2Fill it in on each product page in the admin, or import the values with a product CSV.
- 3In the theme editor, open the product template, select the block (for example Ingredients) and click the Connect dynamic source icon next to the field.
- 4Choose your metafield. The block now shows each product's own value; products with an empty metafield hide it.
Star ratings
Product cards and the Rating block read Shopify's standard review metafields (reviews.rating and reviews.rating_count). Most review apps fill these automatically. Without reviews, no stars are shown.
Badges without metafields
For simple labels on product cards, use tags instead: a product tagged badge:Limited shows a "Limited" badge. See Theme settings.