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) »
  • Contribution receipt puzzle
Pages: [1]

Author Topic: Contribution receipt puzzle  (Read 825 times)

sjnorton

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Contribution receipt puzzle
October 02, 2013, 02:28:09 pm
I'm administering a nonprofit site using Drupal 6 and CiviCRM 4.3.5. When we enter a contribution by hand, and ask for an email receipt to be sent, we get only the default text from the contribution receipt in the system workflow templates. Two problems:
  a) We've entered custom text in the contribution page settings, but those are being ignored entirely, and
  b) It seems to be using the default off-line template rather than the default online template (the off-line version includes the text "Thanks for your support." which the online template does not, yet that text is included in the emailed receipts.

While I can change the default text in the off-line template and see the results in the email receipt (!), I'd rather give the folks at this nonprofit the ability to enter the text they want for different contribution pages, and have that carry over into the receipt (as it seems like it should, but it doesn't).

I should say that this CiviCRM installation is not new, and was originally installed with version 3.x, probably 3.1 or 3.2. Not sure if that makes a difference. I did not do a fresh install, but most recently did have to do staged upgrades via 4.0 to have it complete successfully.

Anyone have any ideas! Thanks!

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: Contribution receipt puzzle
October 02, 2013, 04:34:17 pm
My understanding is that CiviCRM is working as designed here. "Off-line" is what you're doing when you do administrative input of contributions (even if you input the donation at that point). Normally, those administrative inputs of contributions are when your administrator is inputting information about donations already made elsewhere (e.g. cheques), so the words make sense in that way.

What you could do is to input the credit card contribution information through the front end (assuing these are mailed in contribution requests?) - that would trigger the 'online' reciepts.

I believe the assumption is that for off-line/administrative data input, you can use the civimail templating to send customized thank-you type messages. I generally don't try to over customize the generic receipt information, but instead find other supplementary ways of thanking donors.

sjnorton

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Contribution receipt puzzle
October 02, 2013, 06:14:31 pm
Thanks for your reply. I guess I can see the logic behind that, though I must say that it's rather opaque. Then there must be a separate template somewhere for when you ask the system to print a receipt (in those cases where you don't have an email address, which happens a lot to us).

But the other question still stands: why is the custom text we're invited to enter into the contribution page setup completely ignored when the actual message is generated? Right now, the intro text simply says "Please print this receipt for your records" with no prelude or other identification. While I could change the master template, I'd rather be able to do what I'm apparently supposed to be able to do and enter customized text that can differ for each contribution page.

I can live without it, but I'm trying to convince the board of how useful CiviCRM is, and this isn't helping  :(


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contribution receipt puzzle
October 03, 2013, 03:05:48 am

currently offline payments do not inherit any settings from a contribution page (and you can have more than 1 about them)

would be good to use the settings from the contrib page to make things easier for the end user. Once you convince your board to use civi, your next step would be to convince your board to help sponsor or contribute code that does the needful :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

sjnorton

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Contribution receipt puzzle
October 03, 2013, 09:39:41 am
Hmm. Well, I might just try to scare up some funds myself to make this work. But what confused me is that the off-line receipt code looks for the presence of a variable that seems to contain the custom text. Here is the beginning of the off-line receipt template:

Code: [Select]
{if $formValues.receipt_text}
     <p>{$formValues.receipt_text|htmlize}</p>
    {else}
     <p>{ts}Thanks for your support.{/ts}</p>
    {/if}

In practice, I always get the "Thanks for your support" text, meaning that the variable is undefined or not passed along, even with custom text entered on the contribution page.

The online template checks for the contents of a similar variable, called simply $receipt_text. But changing the off-line template to use that variable name doesn't work (not surprisingly).

Anyway, how would we go about supporting this work?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Contribution receipt puzzle
October 04, 2013, 01:39:01 am

two options:

1. might want to check and contact someone from: http://civicrm.org/what/experts

2. Might want to set up a bounty for this @ http://bountysource.com. i suspect this is a 4-10 hour project (along with adding a unit test etc)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

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

This forum was archived on 2017-11-26.