Created
September 17, 2013 06:36
-
-
Save driesd/6590758 to your computer and use it in GitHub Desktop.
Commerce: Places the EURO symbol in front of the price value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = "Commerce - EURO symbol fix" | |
description = "Places the EURO symbol in front of the price value" | |
core=7.x | |
package = "Commerce" | |
files[] = commerce_euro.module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_commerce_currency_info_alter(). | |
* | |
* Because the default display of AUD is awful | |
*/ | |
function commerce_euro_commerce_currency_info_alter(&$currencies, $langcode) { | |
$currencies['EUR']['symbol'] = '€'; | |
$currencies['EUR']['symbol_placement'] = 'before'; | |
$currencies['EUR']['code_placement'] = ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment