Hi,
I see a few different discussions regarding this topic, but none that work.
Formatting now:
{{amount_no_decimals}} NOK
That results in a price:
1.500 NOK
What I want:
1500 NOK
Is it possible within the currency there to format it that way, or do I need to go in the code and edit?
PS:
${{amount_with_space_separator}} NOK - Does not work
All of these: Not the way I want it displayed.
| {{ amount }} |
|
1,134.65 |
| {{ amount_no_decimals }} |
✓ |
1,135 |
| {{ amount_with_comma_separator }} |
|
1.134,65 |
| {{ amount_no_decimals_with_comma_separator }} |
✓ |
1.135 |
| {{ amount_with_apostrophe_separator }} |
|
1’134.65 |
After some more testing:
{{amount_no_decimals_with_space_separator}} NOK
The above one works, but not the ideal way.
I still want the price without a space, rather nothing.
Instead of 1 500
I want 1500
Thanks!
The thousands separator obtained for currency code NOK in this case returns a period (.) A currency code has its international standard designated thousand separator. In contrast, the thousands separator obtained for currency code SEK is a space character and for currency code GBP it’s a comma.
When using amount_no_decimals, it uses the international standard designated thousand separator for the currency.
The formatting option amount_no_decimals_with_space_separator will use a space character as the thousands separator. There is no option for no space.
Here’s a summary of what would occur for a formatting option
(N/A) - not applicable
| formatting option |
thousands separator |
decimal separator |
precision (decimal places) |
| amount |
, (comma) |
. (period) |
default from currency code minor units |
| amount_no_decimals |
From currency code international standard |
. (period) (N/A) |
0 |
| amount_with_comma_separator |
. (period) |
, (comma) |
default from currency code minor units |
| amount_no_decimals_with_comma_separator |
. (period) |
. (period) (N/A) |
0 |
| amount_with_apostrophe_separator |
’ (apostrophe) |
. (period) |
default from currency code minor units |
| amount_no_decimals_with_space_separator |
(space) |
. (period) (N/A) |
0 |
| amount_with_space_separator |
(space) |
, (comma) |
default from currency code minor units |
| amount_with_period_and_space_separator |
(space) |
. (period) |
default from currency code minor units |
|
|
|
|