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_currencyandmoney_without_trailing_zerosuse the order’s currency, so an order paid in Canadian dollars prints in CAD.money_inprints 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:{% 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 as23.00) and aunit(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.