Metafields for dietary claims and allergen statements
Short, filterable facts belong in product metafields: a list of dietary claims, a "contains" allergen list, a "may contain" statement, a storage instruction. Use list types where a product has several values, because Shopify's storefront filters can read single-line text, list text, metaobject references, integers, decimals and booleans. Our guide to Shopify metafields walks through creating definitions.
A reusable ingredient metaobject
Shopify itself uses "ingredient lists with nutritional data" as an example of what metaobjects are for. A gourmet store that sells forty products made with the same single-origin cocoa or the same heirloom flour can hold that ingredient once, with its origin story and allergen flags, and reference it from every product. Update the entry and every product page changes.
Example metaobject definition (ingredient):name (single line text), origin (single line text), allergens (list of single line text), certifications (list of single line text, only those you hold), story (rich text). On the product: custom.ingredients as a list of ingredient references, custom.diet as a list of single line text, custom.allergen_statement as multi-line text copied from the label.
If the ingredient story is worth its own page, the metaobject's online store capability can publish it at its own URL with a metaobject template, and the renderable capability adds SEO title and description fields. Only do this for ingredients people actually search for.
Showing the data as crawlable text in Online Store 2.0 templates
In an Online Store 2.0 theme, most of these fields can be connected to section blocks through dynamic sources in the theme editor, with no code. Older or heavily customised themes need Liquid changes. Either way the allergen statement should be HTML text near the add-to-cart button, not a nutrition-panel image. Label images still help shoppers, with descriptive alt text; see our notes on Shopify image SEO.