foreach ($this->_relatedObjects['membership'] as $membership) {
if ($membership->id) {
$values['membership_id'] = $membership->id;
- $values['membership_assign'] = TRUE;
-
// need to set the membership values here
$template->assign('membership_name',
CRM_Member_PseudoConstant::membershipType($membership->membership_type_id)
'customPre_grouptitle',
'customPost_grouptitle',
'useForMember',
- 'membership_assign',
'amount',
'receipt_date',
'is_pay_later',
'customPost' => $values['customPost'],
'customPost_grouptitle' => $values['customPost_grouptitle'],
'useForMember' => $values['useForMember'],
- 'membership_assign' => $values['membership_assign'],
'amount' => $values['amount'],
'is_pay_later' => $values['is_pay_later'],
'receipt_date' => !$values['receipt_date'] ? NULL : date('YmdHis', strtotime($values['receipt_date'])),
$this->postProcessMembership($membershipParams, $contactID, $premiumParams, $customFieldsFormatted, $membershipType, $membershipTypeIDs, $isPaidMembership, $this->_membershipId, $isProcessSeparateMembershipTransaction, $financialTypeID,
$membershipLineItems);
- $this->assign('membership_assign', TRUE);
$this->set('membershipTypeID', $membershipParams['selectMembership']);
}
}
$emailValues = array_merge($membershipParams, $this->_values);
- $emailValues['membership_assign'] = 1;
$emailValues['useForMember'] = !empty($this->_useForMember);
$emailValues['membership_id'] = !empty($membership) ? $membership->id : NULL;
*/
protected function doMembershipProcessing($contactID, $membershipParams, $premiumParams, $formLineItems) {
if (!$this->_useForMember) {
- $this->assign('membership_assign', TRUE);
$this->set('membershipTypeID', $this->_params['selectMembership']);
}