The default currency format is
{{ currency.code }} {{ price|number_format(currency.decimals, '.', '\'') }}
The following variables are available:
Variable | Description | Example value |
---|---|---|
price |
The full price of the product as float | 1500.40 |
integers |
The price without decimals | 1500 |
decimals |
Only the decimals of the price | 40 |
currency |
The currency data you specified | {code: "EUR", rate: 1, symbol: "€", decimals: 2} |
product |
The product model this price is from. | A full model instance |
Visit this plugin's documentation for more examples.