Take a look at includes/scabn_codes.php That stores an array with current to display mapping:
$scabn_currency_codes = array(
317 "AUD" => array (36, "Australian Dollar AUD"),
318 "CAD" => array (36, "Canadian Dollar CAD"),
...
I believe displaying the symbol before the number is hardcoded, however.
I changed code to show zł in 1.9.14, but display is still before number as that is what is normal for many currencies ($40 not 40$).
find ".$currency." ".number_format($cart->total,2)." in display.php and replace it on ".number_format($cart->total,2)." ".$currency."
…display is still before number as that is what is normal for many currencies ($40 not 40$).
Not entirely true. It depends of the language used, meaning that the same currency symbol can be used before or after the number.
For example this is the official rule for Euro:
Position of the ISO code or euro sign in amounts:
– In English texts, the ISO code ‘EUR’ is followed by a fixed space and the amount:
example: a sum of EUR 30
– The same rule applies in Irish, Latvian and Maltese. In all other official EU languages the order is reversed; the amount is followed by a fixed space and the ISO code ‘EUR’ (or the euro sign in graphics):
example: une somme de 30 EUR
However, the euro sign (when permitted) is followed by the amount without the intervening fixed space:
example: €2.50
————–
That said the currency formatting must not be hardcoded.
However a good practice would be to integrate an option to set this by user in options.
For Russian ruble it doesn’t work (