Support

Home Forums Event Espresso Premium PDF Invoices

PDF Invoices

Posted: October 31, 2013 at 9:20 am

Viewing 4 reply threads


Kimber

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!


Tony

  • Support Staff

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


Tony

  • Support Staff

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

November 1, 2013 at 7:53 am

Worked perfectly. Thank You!


Tony

  • Support Staff

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