CaffenzaDocs

Coffee product details (metafields)

Add origin, process, roast level, tasting notes and brew guides to your products.

Coffee details on a product card.
Coffee details on a product card.

Caffenza shows coffee details such as origin, process, caffeine, roast level and tasting notes on product cards and product pages. These details are saved on each product as metafields: extra fields you add to products in Shopify admin.

Step 1 · Create the metafield definitions

  1. In Shopify admin, go to Settings → Metafields and metaobjects → Products.
  2. Click Add definition.
  3. Enter the name and the Namespace and key exactly as in the table below, and choose the type.
  4. Click Save. Repeat for each field you want.
Namespace and keyTypeShown as
custom.originSingle line textCard spec “Origin” and the Origin fact on the product page
custom.processSingle line textCard spec “Process”, product fact
custom.caffeine_mgIntegerCard spec “Caffeine”, with mg after it
custom.roast_levelInteger (1–5)Roast level meter on cards and product page
custom.tasting_notesSingle line text (or a list)Detail line on Simple cards, tasting note tags
custom.altitudeSingle line textProduct fact “Altitude”
custom.varietalSingle line textProduct fact “Varietal”
custom.producerSingle line textProduct fact “Producer”
custom.harvest_yearSingle line textProduct fact “Harvest”
custom.brew_doseSingle line textBrew guide “Dose”, for example 18 g
custom.brew_waterSingle line textBrew guide “Water”, for example 300 ml
custom.brew_tempSingle line textBrew guide “Temperature”
custom.brew_timeSingle line textBrew guide “Time”
custom.brew_ratioSingle line textBrew guide “Ratio”, for example 1:16
caffenza.companion_productProduct reference“Pairs with” card style
caffenza.card_badgeSingle line textYour own badge on the card, for example Bestseller
caffenza.origin_badgeSingle line textOrigin badge on the card
caffenza.card_eyebrowSingle line textSmall label above the product name (falls back to product type)
custom.product_icon_imageList of filesDynamic icons under the product title
custom.product_icon_labelList of single line textLabels for those icons, in the same order

Step 2 · Fill in the values

Open a product in Products. Scroll down to Metafields, fill in the fields and save.

Tip

Use a spreadsheet to fill many products at once: export products, fill the metafield columns, and import the file again. Or use the bulk editor in Products → select products → Bulk edit.

Step 3 · Connect them to the theme

The product template already uses these keys, so most details appear on their own. To change what cards show, open Theme settings → Product card and enter a different metafield in Spec 1–3, Meter metafield or Detail metafield. See Product cards.

In sections and blocks, click the dynamic source icon next to a field to connect any metafield.

Not selling coffee?

The same fields work for any product. For tea, use specs like Region, Oxidation and Steep time. For a bakery, use Allergens, Weight and Shelf life. Only the labels and metafields change.

Screenshots

Product metafield definitions.
Product metafield definitions.
Adding a metafield definition.
Adding a metafield definition.
Metafield values on a product.
Metafield values on a product.
Bulk editing metafields.
Bulk editing metafields.
Connecting card specs to metafields.
Connecting card specs to metafields.
Coffee details on the product page.
Coffee details on the product page.