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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How do I display "Add Contribution->Additional Details->Note" info in a receipt?
Pages: [1]

Author Topic: How do I display "Add Contribution->Additional Details->Note" info in a receipt?  (Read 540 times)

Boom I.T.

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: WordPress 3.7.1
  • MySQL version: 5.1.70-cll
  • PHP version: 5.3.27
How do I display "Add Contribution->Additional Details->Note" info in a receipt?
December 06, 2013, 08:35:41 am
Hi folks.

In reference to Online/Offline receipts, how do I display the information that was entered into the "Add Contribution->Additional Details->Note" section?
I've added {debug} to my template to see the fields when I view the produced message in RAW format, but it does not show me anything that resembles what I need.

The documentation is all over the place on this, and I can't seem to find a direct answer.
Also, I can't get the info form the "paidBy" field to appear in the "Online Receipt", although it works in the "Offline Receipt".

Any help towards resolving these issues would be greatly appreciated.

Regards.

Boom I.T.

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: WordPress 3.7.1
  • MySQL version: 5.1.70-cll
  • PHP version: 5.3.27
Re: How do I display "Add Contribution->Additional Details->Note" info in a receipt?
December 08, 2013, 09:55:45 pm
Any takers?

I still cannot retrieve the "Additional Details" values so I've added a custom group ($customGroup) for additional notes instead.
The $customGroup values appear in the offline receipt message that gets sent to the appropriate email address...
...however the values are blank in the online receipt (email and pdf).  ???

This problem doesn't seem to have an obvious solution to a new user like myself and some help from the community would be much appreciated.  :)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: How do I display "Add Contribution->Additional Details->Note" info in a receipt?
December 09, 2013, 12:48:17 am
hey - problem is some of us old-timers may never have seen a use case for this and hence are left either guessing or looking. And maybe the best i can do is help re-ask the same question in case it helps other folks jump to the answer ;-)

So we are talking about the Notes field at eg

http://drupal.demo.civicrm.org/civicrm/contact/view/contribution?reset=1&action=add&cid=203&context=contribution

and this would (presumably) only be happening on offline contributions?

ie can the contribution Notes field be made public on a contribution page? never tried it, never seen it.

So you have stepped around this by creating a custom field for Contributions .. and you are saying this works for offline contributions ie it shows data in the receipt - but if you use that same field in an online form - and you have the same token in the online receipt - you get nada. Is that about it?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Boom I.T.

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: WordPress 3.7.1
  • MySQL version: 5.1.70-cll
  • PHP version: 5.3.27
Re: How do I display "Add Contribution->Additional Details->Note" info in a receipt?
December 09, 2013, 07:03:41 am
@petednz: Thanks for the reply.

Initially, I was trying to display the information that was entered into the "Add Contribution->Additional Details->Note" section, to both online/offline receipts.
I was unable to get the information to display for both online/offline receipts.

I decided it was time to try something else, so I created a custom group field for contributions called "Item Details->Description".
The information from the custom group field I created displays perfectly in the offline receipt (Add Contribution->Send Receipt = Checked), but it does not appear at all in the online receipt (email/pdf).

I should mention that all contributions are being manually entered from the administrative interface, and no custom contribution page is being used.
Online receipts are being generated via "Find Contributions->Search User->Selected Donation->(Actions) Print or Email Contribution Receipts".

The following code is contained within both the online/offline receipt templates:
Code: [Select]
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
 <tr>
  <th {$headerStyle}>
   {$customName}
  </th>
 </tr>
 {foreach from=$value item=v key=n}
  <tr>
   <td {$labelStyle}>
    {$n}
   </td>
   <td {$valueStyle}>
    {$v}
   </td>
  </tr>
 {/foreach}
{/foreach}
{/if}


petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: How do I display "Add Contribution->Additional Details->Note" info in a receipt?
December 09, 2013, 12:11:14 pm
sorry i am lost - perhaps the use of the terms online/offline is confusing me.

I think Civi tend to refer to 'online' receipts as being those that are generated via online contribution pages.

All back end ones would be 'offline'.

But I see you are saying

Code: [Select]
Online receipts are being generated via "Find Contributions->Search User->Selected Donation->(Actions) Print or Email Contribution Receipts".
So if anyone else can help, it seems the issue here is about tokens for custom fields not being included in emails/PDFs from a 'Find Contributions'.

Will try and point Eileen to this post since am pretty sure we have dealt with such instances.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How do I display "Add Contribution->Additional Details->Note" info in a receipt?

This forum was archived on 2017-11-26.