$customGroup = $this->get('customProfile');
$this->assign('customProfile', $customGroup);
- $this->assign('primaryParticipantProfile', $this->get('primaryParticipantProfile'));
- $this->assign('addParticipantProfile', $this->get('addParticipantProfile'));
+ CRM_Event_Form_Registration_Confirm::assignProfiles($this);
CRM_Utils_System::setTitle(CRM_Utils_Array::value('thankyou_title', $this->_values['event']));
}
}
$this->assignToTemplate();
+ $taxAmount = 0;
if ($this->_priceSetId && !CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $this->_priceSetId, 'is_quick_config')) {
$lineItemForTemplate = array();
foreach ($this->_lineItem as $key => $value) {
if (!empty($value)) {
$lineItemForTemplate[$key] = $value;
+ foreach ($value as $v) {
+ if (isset($v['tax_amount'])) {
+ $taxAmount += $v['tax_amount'];
+ }
+ }
}
}
if (!empty($lineItemForTemplate)) {
$this->assign('lineItem', $lineItemForTemplate);
}
}
+ else {
+ foreach ($this->_lineItem as $lineItemKey => $lineItemValue) {
+ foreach ($lineItemValue as $v) {
+ if (isset($v['tax_amount'])) {
+ $taxAmount += $v['tax_amount'];
+ }
+ }
+ }
+ }
+ $this->assign('totalTaxAmount', $taxAmount);
$this->assign('totalAmount', $this->_totalAmount);
$hookDiscount = $this->get('hookDiscount');