Support

Home Forums Event Espresso Premium Add trans ID, Reg ID and potentially other info to the Invoice PDF?

Add trans ID, Reg ID and potentially other info to the Invoice PDF?

Posted: August 16, 2012 at 12:48 pm


Kevin Doherty

August 16, 2012 at 12:48 pm

I see the invoice PDF shows the “Primary ID” which is nice, but for my client I’m assuming they would want to filter the pending payment orders when people come to pay in cash by the unique “transaction ID”. Is there anyway to add this and in general other fields to the PDF invoice?

I also noticed in my invoice it says “or use the payment link below”, however there is no link below. Anyone else experience the payment link not showin in their pdf’s?


Josh

  • Support Staff

August 16, 2012 at 2:37 pm

Please see this thread: http://eventespresso.com/forums/2011/12/adding-information-to-the-pdf-invoice-template/

The “or use the payment link below” might be something that was added in the invoice settings. That’s not something Event Espresso adds, unless you’re referring to the email, in which case, you could use the [payment_url] email shortcode.

Since typically an invoice will not have a transaction ID (they haven’t paid yet) it doesn’t include this info. The payment confirmation email can display this by adding this shortcode: [txn_id]


Kevin Doherty

August 16, 2012 at 2:39 pm

makes perfect sense, thanks for the clarification Josh!


Kevin Doherty

August 16, 2012 at 3:06 pm

You were right about the “link below” in the invoice settings, thanks Josh. Unfortunately the code to show the Registration ID is not working. The words “Reg. ID:” show up but nothing else.

I looked up in the code and saw there was a variable declaration commented out for “$registration_id=$attendee->registration_id;” . I uncommented this and then instead of “$reg_id” like the link you pointed me to was using I replaced it with “$registration_id”. It then just showed a “2”. (probably counting the amount of attendees on that invoice).

I followed thats links code verbatim but it was blank, probably too old for the latest version.

I guess I just want a unique type of number (an invoice number of sorts) so the admin can easily look up orders and change the payment status instead of using names, classes etc..


Chris Reynolds

  • Support Staff

August 17, 2012 at 12:33 pm

@kevin

It’s not the number of attendees. However, I’m still trying to determine what it is. I’ll let you know what I can find.


Chris Reynolds

  • Support Staff

August 17, 2012 at 12:37 pm

Okay, here we go. In that old post on those forums, this is what Jost posted:

 $pdf->Cell(-1,20,pdftext('Reg. ID: '). $reg_id['registration_id'],0,0, 'R');//Set reg id

Uncommenting the $registration_id variable declaration and swapping that in, this is what needs to be added under the Primary Attendee ID line:

$pdf->Cell(-0.01,20,pdftext('Reg. ID: '). $registration_id,0,0, 'R');//Set reg id

(so you’re removing the ['registration_id'].) That should give you the long, unique reg id # that is used in the dashboard.


Kevin Doherty

August 17, 2012 at 12:38 pm

thans so much Chris, I really appreciate the amazing support from you and Josh and the rest of the team. Un matched by any other forum support I’ve ever experienced.


Kevin Doherty

August 17, 2012 at 12:42 pm

That Did it!! thanks so much!
now our admins can just use the red ID to filter people which will be so much easier and accurate when going through all the orders.
I can sleep tonight now ๐Ÿ™‚
please add a gold star Icon to the wysiwyg editor in the comments so I can give you and Josh some.
cheers!


Chris Reynolds

  • Support Staff

August 17, 2012 at 1:03 pm

No problem. Comments like that are gold stars enough ๐Ÿ™‚

The support post ‘Add trans ID, Reg ID and potentially other info to the Invoice PDF?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Chris Reynolds 7 years, 9 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!