1

I haven't been able to find a way to change the display of a price from 1.23 USD to $1.23. How do I change the currency display from USD to $?

  • You should add more information to get an answer (are you using Drupal 6, Drupal 7, Ubercart module, Commerce module, other modules?) – sanzante Dec 24 '12 at 13:17
2

You could try

hook_commerce_currency_info_alter

For example,

function EXAMPLE_commerce_currency_info_alter(&$currencies, $langcode) {
    $currencies['USD']['symbol'] = '$';
    $currencies['USD']['symbol_placement'] = 'before';
    $currencies['USD']['code_placement'] = '';
}

See commerce_commerce_currency_info for the default currency info implementation.

| improve this answer | |
  • good solution (y); – Yuseferi Dec 24 '13 at 5:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.