Skip to content

Money With Currency ​

Last updated View as Markdown

The price is formatted like the money filter, and the currency code is added.

When multi-currency is on, the currency of the customer is used for the price and the code.

Example ​

Data
json
{
  "product": {
    "price": "10.00"
  }
}
liquid
{{ product.price | money_with_currency }}

Output

$10 USD

When the value is not a number, nothing is printed.