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) »
  • Donor Name in Offline Receipt
Pages: [1]

Author Topic: Donor Name in Offline Receipt  (Read 835 times)

greenyoga

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Donor Name in Offline Receipt
October 02, 2009, 08:49:07 am
I would like to add the Donor's Name (and perhaps address) to the email Offline Receipt generated when processing a contribution through the Record Contributions button. 

Putting  $contributorDisplayName into Message.tpl does not seem to work.  Any suggestions?

Alan

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Donor Name in Offline Receipt
October 02, 2009, 03:13:25 pm
Alan :
Quote
I would like to add the Donor's Name (and perhaps address) to the email Offline Receipt generated when processing a contribution through the Record Contributions button.

You might want to apply the following patch to add a contributor name:
Code: [Select]
Index: templates/CRM/Contribute/Form/Message.tpl
===================================================================
--- templates/CRM/Contribute/Form/Message.tpl (revision 23990)
+++ templates/CRM/Contribute/Form/Message.tpl (working copy)
@@ -11,6 +11,8 @@
 {ts}Contribution Information{/ts}
 
 ===========================================================
+
+{ts}Donor Name{/ts}: {$formValues.receipt_from_name}
 {ts}Contribution Type{/ts}: {$formValues.contributionType_name}
 {ts}Total Amount{/ts}: {$formValues.total_amount|crmMoney}
To add address,etc you might want to add it to the $params array in emailReceipt method in CRM/Contribute/Form/AdditionalInfo.php

I recommend using Custom PHP Path Directory and custom templates to achieve the same.
For more details, refer : http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

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

This forum was archived on 2017-11-26.