Event Registration Confirm/Thank You pages show incorrect currency
The event registration confirmation/thank you pages display the incorrect currency. Steps to reproduce:
- Create a new event with a non-default currency (in my case EUR)
- Add a price set to fees and allow registration
The main event page, confirmation and thank you pages will all show the incorrect currency.
We fixed this for a client by doing the following:
diff --git a/sites/all/modules/contrib/civicrm/CRM/Event/Form/Registration.php b/sites/all/modules/contrib/civicrm/CRM/Event/Form/Registration.php
index 74526af6a..947cc051e 100644
--- a/sites/all/modules/contrib/civicrm/CRM/Event/Form/Registration.php
+++ b/sites/all/modules/contrib/civicrm/CRM/Event/Form/Registration.php
@@ -452,6 +452,8 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
}
}
+ $this->assign('currency', $params['currencyID']);
+
$this->assign('address', CRM_Utils_Address::getFormattedBillingAddressFieldsFromParameters($params, $this->_bltID));
// The concept of contributeMode is deprecated.
The problem is that templates/CRM/Price/Form/LineItem.tpl
uses the $currency
variable, but Event/Form/Registration.php
sets $currencyID
and not $currency
However, it still doesn't work for on-the-fly (non-price-set) prices.
This bug may be related to the following:
Edited by bwheeler