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

Move hard-coded off-line receipt subjects from PHP files into templates so users can adjust as needed

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.7
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      Rationale
      =======
      Currently the "subject" text for most receipts / confirmations are set in template files - so they're easy to modify if needed. However, offline contribution receipts, offline membership signup and offline event registration share a single tpl file (templates/CRM/Contribute/Form/OfflineReceiptSubject.tpl) with hard-coded subjects passed in from the 3 PHP files.

      Implementation
      ============
      1. Create separate offline subject template files for offline event registration and membership signup. Move hard-coded subject from PHP files into each tpl file.

      2. Assign additional useful variables to the templates so users can add more info by modifying tpl files:

      • for event registration, assign event title ($title)
      • for membership, assign membership type ($membershipType)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: