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
PDF Invoices | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium PDF Invoices

PDF Invoices

Posted: October 31, 2013 at 9:20 am

Viewing 4 reply threads


Kimber Lintz

October 31, 2013 at 9:20 am

Hello,

I am looking to change the date on the invoice to the date the attendee registered… everytime we pull an invoice it shows today’s date.

Thanks!


Anonymous

November 1, 2013 at 2:08 am

Hi,

If you copy the folder event-espresso/gateways/invoice/ to wp-content/uploads/espresso/gateways/invoice/

Then in that new folder open up the file template.php and go to line 115 you’ll see the date is created there.

date(get_option('date_format')

In that template, the variable $date stores the date that attendee registered onto the event.

So you chould change that line to be:

$pdf->Cell(180, 0, __('Date: ', 'event_espresso') . $date, 0, 1, 'R'); //Set invoice date


Anonymous

November 1, 2013 at 2:11 am

To display the date in a nicer format you could also wrap $date with event_date_display() so now its:

$pdf->Cell(180, 0, __('Date: ', 'event_espresso') . event_date_display($date), 0, 1, 'R'); //Set invoice date


Kimber Lintz

November 1, 2013 at 7:53 am

Worked perfectly. Thank You!


Anonymous

November 1, 2013 at 9:37 am

No Problem.

Glad to help :)

Viewing 4 reply threads

The support post ‘PDF Invoices’ 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