Skip to Content
ProductsMetafields the theme reads

Metafields the theme reads

Metafields are extra fields you add to products, blog posts and other content in Shopify admin — material, finish, width, a list of spare parts. Faber is built for spec-heavy catalogs, so it reads more metafields than most themes: they fill the list columns, the spec table, the dimension drawing, the documents list and the trade tools.

Some metafields have fixed names (the theme always reads that key). Most are chosen in settings: the theme ships with a sensible default key, and you can point it at any metafield you already have.

You don’t need all of them. Every block and column that reads a metafield hides itself (or shows a dash) when a product has no value. Start with the ones your buyers ask about most.

Metafields with fixed names

MetafieldOnTypeWhat it does
custom.case_qtyProductsIntegerSold by the case. Quantities move in whole cases (4, 8, 12…) on the product page, in list rows, in the bag and in the variant matrix, with “Sold in cases of 4” or “Case of 4” beside them. A B2B quantity rule wins when both are set.
custom.moqProductsIntegerMinimum order quantity for the Wholesale terms and Variant matrix blocks. It wins over the blocks’ own minimum setting, which is used for products without it. See Wholesale product page.
reviews.ratingProductsRatingStars in the Rating block, the Product details line, the Product reviews section and the Rating row on the compare page.
reviews.rating_countProductsIntegerThe number of reviews next to the stars.
custom.related_productsBlog postsList of productsThe products shown under a blog post (the Products heading in the Blog post section).

You don’t create the reviews metafields yourself. Product review apps (Judge.me, Okendo, Shopify Product Reviews and others) write them automatically. If stars don’t show, check that your review app syncs ratings to Shopify metafields.

Metafields you choose in settings

Write the key as namespace.key, for example custom.material. You’ll find both parts on the metafield definition in Settings › Custom data.

WhereSettingDefault keyType
Product grid section (collection page)Column 1 metafield … Column 3 metafieldcustom.material, custom.size, custom.finishText, number or list
Product grid sectionLead time metafieldcustom.lead_timeSingle line text, for example “Made to order · 3 weeks”
Dimensions blockWidth metafield, Height metafield, Depth metafieldcustom.width, custom.height, custom.depthNumber (in the block’s Unit for number metafields) or dimension
Specifications blockRow 1 metafield … Row 6 metafield, each with a labelcustom.material in row 1; the Faber preset adds custom.finish, custom.seat_height, custom.use, custom.fire_rating, custom.careText, number, true/false or list
Specification blocks inside SpecificationsValue — connect it with the dynamic source icon—Any
Certifications blockCertifications metafieldcustom.certificationsList of single line text, or list of Certification metaobjects
Documents blockFile metafieldcustom.documentsFile or list of files
Parts and accessories blockProducts metafieldcustom.accessoriesList of products
Wholesale terms blockLead time metafield, Recommended retail price metafieldcustom.lead_time, custom.rrpText; money or number
Theme settings › Product compareRow 1 metafield … Row 4 metafield, each with a labelcustom.material in row 1Text, number, true/false or list

How the list columns fill in

Each list column shows the product’s metafield value. When a product has no value, an option with the same name fills the column instead — so a column headed “Size” lists a chair’s Size option values even without a custom.size metafield. Otherwise the cell shows a dash.

Certifications as metaobjects

For logos and a standard number on each certificate, create a metaobject definition Certification (Settings › Custom data › Metaobjects) with three fields:

Field keyTypeExample
nameSingle line textFire retardant upholstery
standardSingle line textBS 7176 Medium hazard
logoFile (image)The mark of the test house

Then make custom.certifications a Metaobject metafield (list) that references Certification entries. A plain list of single line text (“EN 16139”, “FSC”) works too and shows each value as a tag.

Documents and their labels

Upload files in Content › Files, give each a clear alt text (“Assembly instructions”, “CAD drawing (DWG)”, “Fire test certificate”), then pick them in the product’s custom.documents metafield. The alt text is the label buyers see; without it the file name is used.

Value types that display well

  • Single line and multi-line text
  • Integer and decimal numbers
  • True or false (shows Yes or No in Specifications)
  • Lists of the above (shown comma-separated)
  • Dimension values for the drawing (they bring their own unit)

Other types (rich text, money, references) are shown as plain text in Specifications and the list columns. Single line text reads best there.

Create a metafield definition

  1. In Shopify admin, go to Settings › Custom data.
  2. Click Products (or Blog posts for custom.related_products).
  3. Click Add definition.
  4. Enter a Name, for example “Seat height”. Shopify fills in the Namespace and key as custom.seat_height — this is what you enter in the theme setting.
  5. Click Select type and choose the type, for example Dimension or Single line text. Choose One value or List of values.
  6. Click Save.

Then fill it in on each product: open the product, scroll to Metafields at the bottom, and enter the value. For a large catalog, use Bulk edit or import a CSV with a metafield column (the Faber demo catalog does this for width, height, depth, material, finish and more).

Turn on Filter for a metafield in the Search & Discovery app to let buyers filter collections by it — material, finish, fire rating or certification are good candidates. See Collection pages and filters.

Example: one fact, shown everywhere

Material should read the same in the list view, on the product page and on the compare page:

  1. Create a product metafield definition “Material” (custom.material, single line text) and fill it in, for example “Solid oak, oiled”.
  2. Product grid › Column 1 heading “Material”, Column 1 metafield custom.material (the defaults).
  3. Product information › Specifications › Row 1 label “Material”, Row 1 metafield custom.material (the defaults).
  4. Theme settings › Product compare › Row 1 label “Material”, Row 1 metafield custom.material (the defaults).

Example: the dimension drawing

  1. Create three product metafields: Width (custom.width), Height (custom.height) and Depth (custom.depth). Use type Dimension to store the unit with each value, or Decimal and set Unit for number metafields in the Dimensions block (default mm).
  2. Fill them in, for example 560, 790 and 540 mm.
  3. The Dimensions block draws the front and side views to scale, with a mm / in switch.

Example: products in a blog post

  1. Create a blog post metafield definition “Related products” with Namespace and key custom.related_products and type Product, List of values.
  2. Open a blog post, scroll to Metafields and choose the products.
  3. The post shows them under the article, with the heading set in the Blog post section.

Common mistakes

  • Wrong key: material alone won’t work — include the namespace: custom.material.
  • Wrong owner: a variant metafield won’t show in a product setting; create the definition under Products.
  • Width without height: the drawing needs both; depth is optional.
  • Files without alt text: the documents list falls back to file names such as ARC_DC_2024_v3.pdf.
Last updated on