The Clean app allows creating tables that display the value of any product metafield created by other apps.
A. The product metafields can be displayed by adding the {{ cleantm.namespace.key }} dynamic data field in the input text. Here namespace.key needs to be replaced with the actual meta field namespace and meta field key names.
For example - If you have a metafield with the namespace 'instructions' and key 'wash' then to display the value of this metafield, add text {{ cleantm.instructions.wash }}.
You can combine Product Metafield Display Conditions with Dynamic Metafields to create powerful rules that display metafield data based on your rules.
Below are a few examples of product metafield representations that may be helpful.
Metafield Type | Product Metafield 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 }} |
Multi Line Text | {{ cleantm.custom.alphanumeric.value }} |
Validations | {{ cleantm.custom.validation.value }} |
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 at %l:%M %p %Z' }} |
B. To reference the metafield directly (without dynamic data binding) :
You can use the standard metafield format: {{ product.metafields.namespace.key.value }}.
Example: If your metafield is in the custom namespace with key size, then use: {{product.metafields.custom.size.value }}
This will directly render the metafield value for the current variant context.