CaffenzaDocs

Metafields and dynamic sources

Show different content on each product with one template.

The Connect dynamic source icon.
The Connect dynamic source icon.

A metafield is an extra field on a product, collection, page or blog post, such as “Roast level” or “Origin”. A dynamic source connects a theme setting to that field, so one template shows different content for each product.

Connect a setting to a metafield

  1. Create the metafield definition in Settings → Metafields and metaobjects.
  2. Fill in the value on each product.
  3. In the theme editor, hover a text or image setting and click the Connect dynamic source icon.
  4. Choose the metafield. The preview now shows each product’s own value.

For the coffee fields Caffenza uses, see Coffee product details.

Screenshots

Choosing a metafield.
Choosing a metafield.