Discussions

Currency symbol placement hook

Hi,

We have got commerce up and running here, but we can't seem to change to location of the currency symbol.

I tried changing the commerce.api.php:

function hook_commerce_currency_info_alter(&$currencies, $langcode) {
$currencies['EUR']['code_placement'] = 'before';
}

Where can i start looking ?

Posted: Feb 17, 2012

Comments

Mizja on February 17, 2012

oooopss....attached the wrong code. I meant:

function hook_commerce_currency_info_alter(&$currencies, $langcode) {
$currencies['EUR']['symbol_placement'] = 'before';
}

spoetnik on February 17, 2012

I Know it's an ugly solution, but you can always modify commerce.currency.inc

I think it's a bug that de €-sign is placed after the value, is there a Euro-country that has this??