Skip to main content

Money

Money filters format prices based on the currency formatting that's defined in the Shoplazza admin.

money_with_symbol (money)

number | money_with_symbol
returns  string

Formats a given price.

tip

It has an alias money

Code
{{ product.price | money }}
{{ product.price | money_with_symbol }}
Data
{
"product": {
"price": "12.88"
}
}
Output
$12.88
$12.88

money_without_currency

number | money_without_currency
returns  string

Formats a given price without the currency symbol.

Code
{{ product.price | money_without_currency }}
Data
{
"product": {
"price": "12.88"
}
}
Output
12.88