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) »
  • Tokens on Contribution Page 'Receipt' tab
Pages: [1]

Author Topic: Tokens on Contribution Page 'Receipt' tab  (Read 373 times)

zkrebs

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
Tokens on Contribution Page 'Receipt' tab
January 12, 2015, 03:31:37 pm
In the 'receipt message' field it appears tokens are not supported.

I want the top text of my contribution receipt to say 'Dear [contact name]'.

Is this functionality I'd put into the contribution online receipt? What if i want a different header for each contribution page though.

Ideas?

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Tokens on Contribution Page 'Receipt' tab
January 13, 2015, 02:55:36 am
Yes, you to need insert tokens into the Contribution online receipt.

The receipts are written using Smarty, so you can create a different header for each page using a series of statements such as {if $contributionPageId eq "37"}.

« Last Edit: January 14, 2015, 01:37:51 pm by joanne »

zkrebs

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
Re: Tokens on Contribution Page 'Receipt' tab
January 14, 2015, 11:00:30 am
Makes sense.

Counter-question;

Wouldn't it be more intuitive and user-friendly to allow tokens in that section? Is there a huge technical limitation here? Seems like all over CiviCRM tokens are used; why not here?

Most staff won't want to touch the templates with if statements.

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Tokens on Contribution Page 'Receipt' tab
January 14, 2015, 02:14:30 pm
I have thought the same myself. From http://forum.civicrm.org/index.php/topic,15751 it appears that it may be technically possible (although a lot has changed since 2010). 

I suspect that no one with the skills or money to make the modifications has found it to be a pressing issue.  I think it would be a great improvement, however I am capable of writing the if statements and work for an organisation that has no money to fund development that isn't absolutely essential, so I have never pursued the issue.

« Last Edit: January 14, 2015, 02:26:54 pm by joanne »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Tokens on Contribution Page 'Receipt' tab

This forum was archived on 2017-11-26.