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) »
  • Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
Pages: [1]

Author Topic: Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7  (Read 2181 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
January 14, 2012, 06:49:08 pm
Our confirmation receipt for a contribution does not include the Item and Quantity of the contribution.  It only lists the Amount.   See for example:


Contribution Information
Amount    $ 0.01
Date    January 14th, 2012 3:37 PM
Transaction #    09A

But we need to have the QTY and Item in the Contribution info section of the receipt.  So like the admin table shows on the Manage Contributions/Find contributions admin area, we need this to show in the receipt:

Contribution Amount   
ITEM   QTY   UNIT PRICE   TOTAL PRICE
Adult XXL   1   $ 0.01   $ 0.01
Order Total: $ 0.01

How can we get all of that info to show?  I looked at the message templates and it does appear that the code is showing up in the tpl.  For example:

<code>
 {if $lineItem and $priceSetID}

       {foreach from=$lineItem item=value key=priceset}
        <tr>
         <td colspan="2" {$valueStyle}>
          <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
           <tr>
            <th>{ts}Item{/ts}</th>
            <th>{ts}Qty{/ts}</th>
            <th>{ts}Each{/ts}</th>
            <th>{ts}Total{/ts}</th>
           </tr>
</code>

But it's not showing the QTY and Item in the receipt.

Any suggestions?

-Trevor

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
January 15, 2012, 04:49:38 am
Dear backdrifting,

Are you using customized message templates? Check out the default message templates. I found I had to replace some of the code in the tpl since it had changed recently.

Ken

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
January 15, 2012, 05:16:30 am
I'm not aware that I am.  Where is the tpl located for the contribution confirmation receipt?

-Trevor

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
January 15, 2012, 05:24:01 am
When I view my messsage tpls in the interface I do not have any user defined/custom ones.  I only see the tab for the system templates via:

/civicrm/admin/messageTemplates?reset=1

-Trevor

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
January 15, 2012, 05:32:54 am
Can I just add that code to the actual message receipt text box that is enabled and shows up on the actual contribution form via the Thank you and receipting page?  Does that text box accept code?

It's the "Receipt Message" box at the bottom of the Thank you and receipting screen on the specific contribution page.

I'm just getting confused as to where and what is outputting the content in the receipt message we're currently getting.  I'm assuming this area/box here can override some of this correct?

-Trevor

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: Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
January 15, 2012, 07:29:13 am

Might want to upgrade to 4.0.8. I think there were some bugs found which have been fixed in 4.0.8

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

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
January 15, 2012, 08:04:32 am
Cool.  I'll try that first.

Best-

Trevor

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
January 15, 2012, 08:21:57 am
See my other post related here:

http://forum.civicrm.org/index.php/topic,22982.0.html

Do you think these bugs are fixed in 4.0.8 as well?

-Trevor

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
January 15, 2012, 08:49:43 am
This is also fixed now.  The QTY and line item is now showing up in the e-mail receipt. 

Item   Qty   Each   Total
Adult XXL    1    $ 0.01    $ 0.01

The upgrade to 4.0.8 worked and fixed it.  Thanks Lobo!!!

Best-

Trevor

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7
January 15, 2012, 11:36:32 am
Ok interestingly this fixed the issue only in the e-mail that gets sent manually from the Contribution record in CiviCRM after the contribution has been made.  So I can e-mail the receipt to the customer after they do the original transaction and the details are in this email.

However the e-mail that gets sent during the transaction process still does not include the QTY and line items.  So still seems like this is buggy.

-Trevor

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Issue with confirmation receipt in CiviCRM 4.0.7 & Drupal 7

This forum was archived on 2017-11-26.