Skip to content

Instantly share code, notes, and snippets.

@driesd
Created September 17, 2013 06:36
Show Gist options
  • Save driesd/6590758 to your computer and use it in GitHub Desktop.
Save driesd/6590758 to your computer and use it in GitHub Desktop.
Commerce: Places the EURO symbol in front of the price value
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
<?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