Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Invoice Transaction ID | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Invoice Transaction ID

Invoice Transaction ID

Posted: March 5, 2013 at 10:37 am

Viewing 3 reply threads


Steve Kumar

March 5, 2013 at 10:37 am

Hi Support,

At the moment the invoice shows a “Primary Attendee ID”, is there Transaction ID instead? Something that is Unique to an invoice which can be used to search and update offline payments. If yes, how to do replace it in the current template.

Regards
Steve


Jonathan Wilson

  • Support Staff

March 5, 2013 at 11:36 am

Hi Steve,

You can modify this in the wp-content/plugins/event-espresso/gateways/invoice/template.php file.

First, you will need to add the following code below line 52:

$txn_id = $attendee->txn_id;

Then you need to change line 115 from:

$pdf->Cell(180, 10, __('Primary Attendee ID: ', 'event_espresso') . $attendee_id, 0, 0, 'R'); //Set Invoice number

To:

$pdf->Cell(180, 10, __('Transaction ID: ', 'event_espresso') . $txn_id, 0, 0, 'R'); //Set Invoice number

In order to prevent the changes from being overwritten during an update, don’t forget to copy the /gateways/invoice/ directory to /wp-content/uploads/espresso/gateways.


Steve Kumar

March 5, 2013 at 7:38 pm

Thanks got that fixed. Another question, how do I add price_option from the attendee_table. I have extracted the data but could display it correctly on the PDF. Any help on that?


Chris Reynolds

  • Support Staff

March 6, 2013 at 1:01 pm

Hey Steve —

FPDF uses a really odd way of positioning data. You could very well be echoing the data but because you haven’t added a position for that data, it’s not displaying or displaying off the page. My recommendation if you are adding new fields is to copy one of the existing ones (something that’s close — in terms of positioning — to where you want the field to display on the invoice), and then fiddle with the x/y coordinates (e.g. the numbers after $pdf->Cell or $pdf->MultiCell).

Viewing 3 reply threads

The support post ‘Invoice Transaction ID’ 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.

Event Espresso - Staging Server