CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Customizing Receipt Messages
Pages: [1]

Author Topic: Customizing Receipt Messages  (Read 1459 times)

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Customizing Receipt Messages
January 04, 2010, 09:32:29 am
I've just spent the morning wandering around a bit in civiCRM code, learning how to customize the e-mail civiCRM sends as a receipt for contributions and other payments.  As it's not particularly documented (that I found - maybe I missed it), I thought I'd share so it's there for the next person searching.  Hopefully somebody else can check me to make sure I've done it right and I'm not spreading bad info.

The two key files that need to be modified are (in Joomla format)
\administrator\components\com_civicrm\civicrm\templates\CRM\Contribute\Form\Message.tpl
\administrator\components\com_civicrm\civicrm\templates\CRM\Contribute\Form\ReceiptMessageOffline.tpl

(in Droopal format)
\sites\all\modules\civicrm\templates\CRM\Contribute\Form\Message.tpl
\sites\all\modules\civicrm\templates\CRM\Contribute\Form\ReceiptMessageOffline.tpl

To add a customized First Name/ Last Name Greating, insert the following at the very beginning of each file:
{ts}Dear{/ts} {$formValues.receipt_from_name}

The text of the message is on line 5 of Message.tpl and line 7 of ReceiptMessageOffline.tpl
I made it a little more personal, including a sincerely from the Executive Director (me) and I changed "Please Print this" to "You may wish to save this receipt for your records."  (Some of my donors would take exception to an encouragement to kill a tree).

May I suggest that both of these changes be made in future civiCRM versions?  People always like to be addressed by their names and it would probably be best not to suggest printing e-mails.
Thanks to those who help create and enhance civiCRM!

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Customizing Receipt Messages
January 04, 2010, 10:27:54 am
Quote
May I suggest that both of these changes be made in future civiCRM versions?

In CiviCRM v3.1 we are using Message template for Receipts. So you can configure your own version using UI rather than modifying template.

Kurund
Found this reply helpful? Support CiviCRM

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Customizing Receipt Messages
January 04, 2010, 03:06:52 pm
Nice!  I guess I should have spent the morning upgrading instead!
Thanks to those who help create and enhance civiCRM!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Customizing Receipt Messages

This forum was archived on 2017-11-26.