Currency
In our Invoice app we are able to change the currency as well as currency format. Follow the steps given below:
- Click Settings from the left sidebar menu of the Invoice app.
- On currency field change to currency you wish to replace in the invoice. You can also change the currency format you want. Available formats are given in the See avaiable variables, replace it with the default value
{{amount}}
.
- Press save button on the top right corner.
- Click Templates from the left sidebar.
- Select your template.
- Switch to Code tab.
- Add
| money
in the billing section of the invoice.
For eg: Replace{{ order.totalPriceSet.presentmentMoney.amount }}
with{{ order.totalPriceSet.presentmentMoney.amount | money}}
Custom Currency Format
- Click Templates from the left sidebar.
- Select your template.
- Switch to Code tab.
- Add
| money
in the billing section of the invoice.
For eg: Replace{{ order.totalPriceSet.presentmentMoney.amount }}
with{{ order.totalPriceSet.presentmentMoney.amount | money_format: '${{amount}}' }}