$template->assign('membership_name',
CRM_Member_PseudoConstant::membershipType($membership->membership_type_id)
);
- $template->assign('mem_start_date', $membership->start_date);
- $template->assign('mem_join_date', $membership->join_date);
- $template->assign('mem_end_date', $membership->end_date);
$membership_status = CRM_Member_PseudoConstant::membershipStatus($membership->status_id, NULL, 'label');
$template->assign('mem_status', $membership_status);
if ($membership_status === 'Pending' && $membership->is_pay_later == 1) {
);
$this->set('renewal_mode', $renewalMode);
- if (!empty($dates)) {
- $this->assign('mem_start_date', CRM_Utils_Date::customFormat($dates['start_date'], '%Y%m%d'));
- $this->assign('mem_end_date', CRM_Utils_Date::customFormat($dates['end_date'], '%Y%m%d'));
- }
if (!empty($membershipContribution)) {
// Next line is probably redundant. Checks prevent it happening twice.
['name' => 'event_offline_receipt', 'type' => 'subject'],
],
],
+ [
+ 'version' => '5.69.alpha1',
+ 'upgrade_descriptor' => ts('Significant changes to the template and available variables. Text version is discontinued'),
+ 'templates' => [
+ ['name' => 'membership_online_receipt', 'type' => 'text'],
+ ['name' => 'membership_online_receipt', 'type' => 'html'],
+ ['name' => 'membership_online_receipt', 'type' => 'subject'],
+ ],
+ ],
];
}
],
'membership_online_receipt' => [
'$dataArray' => ts('found within $taxBreakDown'),
+ '$mem_start_date' => 'membership.start_date',
+ '$mem_end_date' => 'membership.end_date',
+ '$mem_join_date' => 'membership.join_date',
],
'event_offline_receipt' => [
'$contributeMode' => ts('no longer available / relevant'),