Dynamic Metafields

Clean Table supports displaying Shopify product metafield values dynamically. This allows you to create a single table template that automatically fetches and displays unique product specifications (like dimensions, material, or weight) for each individual product page.

How to Connect Product Metafields

  • Using the Clean Table Dynamic Field (Recommended): Use the format {{ cleantm.namespace.key }} in your table cell text, replacing namespace.key with your actual metafield namespace and key. For example, if your namespace is instructions and key is wash, use {{ cleantm.instructions.wash }}.
  • Referencing the Metafield Directly: You can also use the standard Shopify Liquid format: {{ product.metafields.namespace.key.value }} (e.g., {{ product.metafields.custom.size.value }}).

[Screenshot Placeholder: Table editor inputs showing how to link custom product metafields to table rows.]


Metafield Types Mappings

Use the corresponding syntax below for each metafield data type:

Metafield Type

Liquid Representation

Product

{{ cleantm.custom.product.value }}

Collection

{{ cleantm.custom.collection.value }}

Money

{{ cleantm.custom.price.value | money }}

Single Line Text

{{ cleantm.custom.stock.value }}

Multi Line Text

{{ cleantm.custom.specs.value | newline_to_br }}

Rich Text

{{ cleantm.custom.rich_text | metafield_tag }}

Weight

{{ cleantm.custom.product_weight.value }}

Volume

{{ cleantm.custom.volume.value }}

Dimension

{{ cleantm.custom.dimension.value }}

Decimal

{{ cleantm.custom.price_in_decimal.value }}

Integer List

{{ cleantm.custom.agelist.value | join:'<br>' }}

Integer Single

{{ cleantm.custom.age.value }}

Single Line Text (list)

{{ cleantm.custom.specifications_of_product.value | join:'<br>' }}

File

<a target='_blank' href='{{ cleantm.custom.file.value.url}}'>{{ cleantm.custom.file.value.url | split: '/' | last | split:'?' | first }}</a>

Date and Time

{{ cleantm.custom.datetimesingle.value | date: '%A, %B %d, %Y' }}