Currencies
Liferay comes with multiple currencies pre-configured for use. If a desired currency is not already included, you can add a new one. See the Currencies Reference on how to enter specific values in the correct format.
To add a new currency,
-
Open the Global Menu () and navigate to Commerce → Currencies.
-
Click New.
-
Enter the data below:
- Name: New Zealand Dollar
- Code: NZD (ISO code)
- Format Pattern: $###,##0.00
- Maximum Decimal places: 2
- Minimum Decimal places: 2
- Rounding Mode: HALF EVEN
- Exchange Rate: 1.49701
- Priority: 11
-
Leave the Primary toggle to NO.
-
Switch the Active toggle to Yes.
-
Click Save.
-
Format Pattern requires the currency’s sign, the number of digits to come between commas, and the places to display. For example, in the format
$###,##0.00
for US dollars, the places held by0
are always displayed (as0
if no other digit is present) while the places held by#
are only displayed if occupied. A value of0.01
in the above format would be displayed as $0.01. -
Rounding Mode requires a type of rounding mode from the drop-down menu.
-
Some payment methods require a specific primary currency to be configured for the store to function. Mercanet requires EUR as the primary currency.