money
A money value, in the the customer's local (presentment) currency.
Tip
Use money filters to output a formatted price.
Tip:
Use money filters to output a formatted price.
Tip: Use <a href="/docs/api/liquid/filters/money-filters">money filters</a> to output a formatted price.
{
"currency": {}
}
Example
{
"currency": {}
}Anchor to Referencing money objects directly
Referencing money objects directly
When a money object is referenced directly, the money value in cents is returned.
{{ product.metafields.details.price_per_100g.value }}
Code
{{ product.metafields.details.price_per_100g.value }}Data
{
"product": {
"metafields": {}
}
}Output
1796
Output
1796Was this section helpful?