Money The Prime app allows the creation of badges (or highlights) that display the value of any product meta field created by other apps.
The product meta fields can be displayed by adding the {{primebm.namespace.key}} dynamic data field in the badge 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 meta field, add text {{primebm.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 | {{ primebm.custom.product.value }} |
Collection | {{ primebm.custom.collection.value }} |
Money | {{ primebm.custom.price.value | money }} |
Single Line Text | {{ primebm.custom.stock.value }} |
Multi Line Text | {{ primebm.custom.specs.value | newline_to_br }} |
Rich Text | {{ primebm.custom.rich_text | metafield_tag }} |
Multi Line Text | {{ primebm.custom.alphanumeric.value }} |
Validations | {{ primebm.custom.validation.value }} |
Weight | {{ primebm.custom.product_weight.value }} |
Volume | {{ primebm.custom.volume.value }} |
Dimension | {{ primebm.custom.dimension.value }} |
Decimal | {{ primebm.custom.price_in_decimal.value }} |
Integer List | {{ primebm.custom.agelist.value | join:'<br>' }} |
Integer Single | {{ primebm.custom.age.value }} |
Single Line Text (list) | {{ primebm.custom.specifications_of_product.value | join:'<br>' }} |
File | <a target='_blank' href='{{ primebm.custom.file.value.url}}'>{{ primebm.custom.file.value.url | split: '/' | last | split:'?' | first }}</a> |
Date and Time | {{ primebm.custom.datetimesingle.value | date: '%A, %B %d, %Y at %l:%M %p %Z' }} |
Note:
- Dynamic Metafields are available for Pro Plan users only.
- If the account is downgraded after adding Highlights having Dynamic Metafields, then those badges will stop being displayed.