money
Formats a given price based on the store's currency format setting - Format without currency code (refer to Setting Up Custom Currency Formats for Your Store).
{{ price | money() }} returns a string.
Required params
price float, integer: The amount.
Optional params
-
codestring: The currency code, which defaults to the currency code of the primary market. -
currencycurrency: The currency information, such asiso_code,nameandsymbol.
Examples
Default
{{{ 10000 | money() }}}
With the code parameter
{{{ 10000 | money(code="USD") }}}
Was this article helpful to you?