transaction id in user email

  • russthebear
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago #12995 by russthebear
transaction id in user email was created by russthebear
it would be great if we could include or be taught how to include the transaction id in the automatic emails sent to donors so that we can provide this in a receipt from us even though they get it from PayPal in a separate email.

is this already in the new update?

Please Log in or Create an account to join the conversation.

  • russthebear
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago #13041 by russthebear
Replied by russthebear on topic Re: transaction id in user email
hello?

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #13259 by Shope
Replied by Shope on topic Re: transaction id in user email
Hi Tuan,
I've been trying contact you to ask for this as well, either as a new feature or as a custom job?
We've got the extension installed and its great but we have a lot of events and we really need to have a unique reference number for each booking (generated automatically).
We need this for record keeping as the payment receipt/reference numbers generated by PayPal are random and not sufficient. Ideally this would be included on the email sent to admin and registrants and be included on PayPal receipt too, also if possible also show in the export data function.

Please Log in or Create an account to join the conversation.

  • russthebear
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #13261 by russthebear
Replied by russthebear on topic Re: transaction id in user email
Tuan, I have emailed you about this several times and posted this issue in this and perhaps another forum thread.

I have also contacted you on Skype and you told me to send you the link to the forum thread...

what is going on?

Can I help in any way?

This is a really strange issue.

PayPal issues a Transaction ID, and that number is recorded in the Joomla database. However, when using TRANSACTION_ID as a field in the user email, it does not generate in the message. This means that the message is generated before the transaction is complete, right?

Is it possible to set up a Cron job to perform this task?

Please Log in or Create an account to join the conversation.

  • russthebear
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #13361 by russthebear
Replied by russthebear on topic Re: transaction id in user email
HEEEEELLLOOOOOOOOOOOOO???????????

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #17160 by Keyvision
Replied by Keyvision on topic Re: transaction id in user email
Hi everyone,
Please note that I offer no support to this fix, we just needed this too so I have put it in and included it here.
The code I edited was the function getEmailContent($config, $row) method on line 517, this method put's both the admin email and user email together with most of the data being sent in the $row variable.

At any point you can append values to table by adding the value
Code:
$table.=" <tr> <td>" .$row->transaction_id "</td> </tr> "
I added it directly after the donation amount from line 869
Code:
$table.=" <tr> <td> " .JText::_('JD_DONATION_AMOUNT'). " </td> <td> " .number_format($row->amount, 2). " </td> </tr> <tr> <td> Receipt number: </td> <td> " .number_format($row->transaction_id, 2); " </td> </tr>
Hope this helps someone somewhere.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc