Welcome to the Eight Themes Docs

How to set up a Specification table with metafields

Product page examplemceclip1.jpg

 

Product card example

mceclip3.jpg

Product specifications can be added to most of our sections that include product cards, like featured collections, cross sells and many more. It can also be added to your product page as a full section. By using metafields you can add dynamic information that is relevant to each of your products.

You can follow our handy guide to set up this block or section.

Step 1: Define a specification metafield

You can create a dynamic specifications table by adding metafields to your products.

  1. Within your Shopify admin, go to Settings.
  2. Go to Metafields.
  3. Select Products and click Add definition.
    Untitled.png
  4. Provide a namespace of specifications.
  5. You can use any name for the key. Please note this will be displayed as the label in your specification table e.g. Height, Width, Weight etc.
  6. Select the appropriate content type and decide whether you want a single value or a list. We support all measurement, text and rating content types.

Untitled__1_.png


Step 2: Assign metafields to your products

You can now assign your metafields to your products.

  1. Within your Shopify settings, go to Products.
  2. Select the relevant product.
  3. Scroll down to the metafield option and select the metafield you defined above.Untitled__2_.png
  4. Save your changes

Step 3: Set up the Specification table on your store

Next, you can set up the specification table on your store. It is available on your product cards and your product page.

  1. Within the theme editor, navigate to where you want to display the specification table.
  2. Add the specification block (product card) or specification section (product page).
  3. In the input box, list your specifications metafield keys (added in step 1) separated by commas to choose which specifications to show and in what order.
    mceclip0.png
  4. Save your changes and preview your theme to see your specification table.

Was this article helpful?