Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5746

Expose all membership parameters (including end date) to Membership Reminder message templates

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2
    • Component/s: CiviMember
    • Labels:
      None

      Description

      Assign each member's membership parameters to $memberParams in UpdateMembershipRecord.php script so that they can be referenced as smarty variable in membership reminder message templates. The assigned array is:

      $memberParams = array( 'id' => $dao->membership_id,
      'status_id' => $dao->status_id,
      'contact_id' => $dao->contact_id,
      'membership_type_id' => $dao->membership_type_id,
      'membership_type' => $allTypes[$dao->membership_type_id],
      'join_date' => $dao->join_date,
      'start_date' => $dao->start_date,
      'end_date' => $dao->end_date,
      'reminder_date' => $dao->reminder_date,
      'source' => $dao->source,
      'skipStatusCal' => true,
      'skipRecentView' => true );

      Example: In the message template you can reference the membership End Date as {$memberParams.end_date|crmDate}

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: