Fix currency symbol for Total Amount on contribution page
authorMatthew Wire <mjw@mjwconsult.co.uk>
Sat, 27 Jun 2020 16:38:13 +0000 (17:38 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Sat, 27 Jun 2020 16:38:27 +0000 (17:38 +0100)
templates/CRM/Price/Form/Calculate.tpl

index 153fb4af448f55dd3c88ba8d4910b9b48b5a95f6..2c6c7c039555d306c683f928badac402d6e5b7a3 100644 (file)
@@ -157,7 +157,7 @@ function display(totalfee) {
   // totalfee is monetary, round it to 2 decimal points so it can
   // go as a float - CRM-13491
   totalfee = Math.round(totalfee*100)/100;
-  var totalFormattedFee = CRM.formatMoney(totalfee);
+  var totalFormattedFee = symbol + ' ' + CRM.formatMoney(totalfee, true);
   cj('#pricevalue').html(totalFormattedFee);
 
   cj('#total_amount').val( totalfee );