Skip to main content
In Foliant’s Liquid, every money value is a whole number of cents: an order total of 100.00 is 10000. This is the same as Shopify Order Printer, so existing templates print the same amounts. To print an amount, always use a money filter: it divides by 100 and adds the currency.

The money filters

  • money, money_with_currency, money_without_currency and money_without_trailing_zeros use the order’s currency, so an order paid in Canadian dollars prints in CAD.
  • money_in prints an amount in another currency than the order’s, for example VAT in your national currency: {{ vat_reporting.tax | money_in: vat_reporting.currency }}.

Which format money prints in

The template’s Number format, in the editor’s top row or on the template’s settings page, decides how amounts look: format_number always uses the document language’s separators: {{ 1234.5 | format_number: 2 }} prints 1.234,50 in a German document.

Do sums in cents

Because amounts are in cents, do arithmetic first and format last:
Compare with amounts in cents too: {% if total_price >= 10000 %} means 100.00 or more.

Good to know

  • The money filters print the right number of decimals for each currency. Currencies with three decimals (such as KWD) keep them.
  • A metafield of type money isn’t in cents: it has a value (such as 23.00) and a unit (the currency code). See Metafields in templates.
  • Line item prices are after line discounts. Order-wide discounts are in order_level_discounts. See Line items in templates.