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) »
  • Custom Receipt Email and PDF after an online contribution
Pages: [1]

Author Topic: Custom Receipt Email and PDF after an online contribution  (Read 1451 times)

frinaldi

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.17
  • MySQL version: 5.1.48
  • PHP version: 5.2.10
Custom Receipt Email and PDF after an online contribution
May 11, 2011, 08:35:47 am
Dear all,

I'm totally new to CiviCRM and I want to know the best way to customize the contribution receipt (mail and pdf document) send to the user after he apply online.

I create a custom template for the inline contribution receipt but I didn't find the way to access to the custom field I set up in my contribution profile. I think this is because those custom fields are associated to the contribute module and not to the contact module, for whom tokens are available.


What must I do to see thoses variables? is there a way in the smarty email template to debug and see all variables that can use the template?

Many thanks for your help,

Fred

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: Custom Receipt Email and PDF after an online contribution
May 12, 2011, 01:41:06 am
Fed:

Quote
I'm totally new to CiviCRM and I want to know the best way to customize the contribution receipt (mail and pdf document) send to the user after he apply online.
You can modify contribution receipt via UI. Check http://drupal.demo.civicrm.org/civicrm/admin/messageTemplates/add?action=update&id=7&reset=1

Kurund
Found this reply helpful? Support CiviCRM

frinaldi

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.17
  • MySQL version: 5.1.48
  • PHP version: 5.2.10
Re: Custom Receipt Email and PDF after an online contribution
May 12, 2011, 02:50:50 am
Dear Kurund,

I find the message template system but I don't know how to use access my customPre and customPost variables by their "key" / "name" if I want to organize my receipt in a specific way.

I try to use the token custom_xxx but it seems that only custom fields associates to the contact can be access this way ; my custom fields are associated to a contribute profile.

Many thanks

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: Custom Receipt Email and PDF after an online contribution
May 12, 2011, 03:51:33 am
Below code renders profile section:
Quote
{if $customPre}
===========================================================
{$customPre_grouptitle}

===========================================================
{foreach from=$customPre item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
 {$customName}: {$customValue}
{/if}
{/foreach}
{/if}

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Custom Receipt Email and PDF after an online contribution

This forum was archived on 2017-11-26.