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 ?
Comments
oooopss....attached the wrong
oooopss....attached the wrong code. I meant:
function hook_commerce_currency_info_alter(&$currencies, $langcode) {
$currencies['EUR']['symbol_placement'] = 'before';
}
The right solution
Found the right solution here :: http://drupal.org/node/1191540#comment-4936912
Works for me!!
Ugly solution
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??
Module for custom currency settings
https://drupal.org/project/commerce_currency_settings