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) »
  • Including Invoice ID in Contribution Receipt
Pages: [1]

Author Topic: Including Invoice ID in Contribution Receipt  (Read 2813 times)

moondrake

  • I’m new here
  • *
  • Posts: 11
  • Karma: 2
Including Invoice ID in Contribution Receipt
July 29, 2008, 06:25:29 pm
Hi There,

Just going through testing of a new installation and noticed that when I go to send a receipt for a new online introduction, the invoice ID is not included (just the transaction Id).

My understanding of these two fields are as follows:

- The invoice ID is where we can enter the ID that our accounting system (MYOB) generates for a transaction.
- The transaction ID is either what the online payment processor generates, or the number of the cheque, money order or direct debit receipt in the case of 'pay later' options.

Assuming that I've understood the purpose of these fields correctly, we need the e-mailed receipt to include in it the Invoice ID (ideally printed as Invoice/Receipt ID).  Is this possible?  I'm moderately fluent in PHP if it needs a hack, but would appreciate a pointer to which file needs hacking.

Cheers,

David

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: Including Invoice ID in Contribution Receipt
July 29, 2008, 07:17:30 pm

U'll need to customize one template file: CRM/Contribute/Form/Message.tpl. You should be able to use {$formValues.invoice_id} for your invoice id entered.

and basically add the invoiceID there. I'm assuming you are talking of the receipt sent from a url like:

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

For other urls, you'll need to do something similar and find the right template file. In some case you might need to assign the invoice id to smarty template

if you need help or assistance ping us on IRC

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

moondrake

  • I’m new here
  • *
  • Posts: 11
  • Karma: 2
Re: Including Invoice ID in Contribution Receipt
July 29, 2008, 07:36:00 pm
Quote
U'll need to customize one template file: CRM/Contribute/Form/Message.tpl. You should be able to use {$formValues.invoice_id} for your invoice id entered.

Thanks Donald.  That did the trick.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Including Invoice ID in Contribution Receipt

This forum was archived on 2017-11-26.