CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Currency symbol added in front of total always
Pages: [1]

Author Topic: Currency symbol added in front of total always  (Read 526 times)

DanilaD

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 11
Currency symbol added in front of total always
July 09, 2010, 08:13:21 pm
Hello.

In function display(), /civicrm/templates/CRM/Price/Form/Calculate.tpl, symbol of currency in variable symbol is always added before total amount, which is incorrect in some languages:

Code: [Select]
function display( totalfee ) {
    document.getElementById('pricelabel').style.display = ( totalfee == 0 ) ? "none" : "block";
    var totalEventFee  = formatMoney( totalfee, 2, seperator, thousandMarker);
    document.getElementById('pricevalue').innerHTML = "<b>"+symbol+"</b> "+totalEventFee;

As actual labels with currency information are shown correctly, this means there are some variables that can hint on which side this symbol should be added. Can you please suggest where to look? Currently I'll just override this file by a custom version.

This function is called on the event registration page when calculating total amount to charge for an event.

Regards,
Danila

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Currency symbol added in front of total always

This forum was archived on 2017-11-26.