// CRM-18399: used by template to pass pre profile id as a url arg
$this->assign('custom_pre_id', $this->_values['custom_pre_id']);
- // Required for currency formatting in the JS layer
-
- // Required for currency formatting in the JS layer
- // this is a temporary fix intended to resolve a regression quickly
- // And assigning moneyFormat for js layer formatting
- // will only work until that is done.
- // https://github.com/civicrm/civicrm-core/pull/19151
- $this->assign('moneyFormat', CRM_Utils_Money::format(1234.56));
-
- CRM_Core_Payment_ProcessorForm::buildQuickForm($this);
-
$contactID = $this->getContactID();
$this->assign('contact_id', $contactID);
if ($contactID) {
$this->assign('isAdditionalParticipants', $isAdditionalParticipants);
if ($this->_values['event']['is_monetary']) {
+ // Required for currency formatting in the JS layer
+ // this is a temporary fix intended to resolve a regression quickly
+ // And assigning moneyFormat for js layer formatting
+ // will only work until that is done.
+ // https://github.com/civicrm/civicrm-core/pull/19151
+ $this->assign('moneyFormat', CRM_Utils_Money::format(1234.56));
self::buildAmount($this);
+ CRM_Core_Payment_ProcessorForm::buildQuickForm($this);
+ $this->addPaymentProcessorFieldsToForm();
}
if ($contactID === 0 && !$this->_values['event']['is_multiple_registrations']) {
$this->addCIDZeroOptions();
}
- if ($this->_values['event']['is_monetary']) {
- $this->addPaymentProcessorFieldsToForm();
- }
-
$this->addElement('hidden', 'bypass_payment', NULL, ['id' => 'bypass_payment']);
-
$this->assign('bypassPayment', $bypassPayment);
if (!$contactID) {