Liquid Template
Currency

Currency

In our Invoice app we are able to change the currency as well as currency format. Follow the steps given below:

  1. Click Settings from the left sidebar menu of the Invoice app.
  2. 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}}.

changing money filter in the settings

  1. Press save button on the top right corner.
  2. Click Templates from the left sidebar.
  3. Select your template.
  4. Switch to Code tab.
  5. Add | money in the billing section of the invoice.
    For eg: Replace {{ order.totalPriceSet.presentmentMoney.amount }} with {{ order.totalPriceSet.presentmentMoney.amount | money}}

changing money filter in the code

Custom Currency Format

  1. Click Templates from the left sidebar.
  2. Select your template.
  3. Switch to Code tab.
  4. Add | money in the billing section of the invoice.
    For eg: Replace {{ order.totalPriceSet.presentmentMoney.amount }} with {{ order.totalPriceSet.presentmentMoney.amount | money_format: '${{amount}}' }}

changing money filter in the code