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
November 1, 2013 at 2:08 am
Add New Note to this Reply
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
November 1, 2013 at 2:11 am
Add New Note to this Reply
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
Add New Note to this Reply
Worked perfectly. Thank You!
Tony
November 1, 2013 at 9:37 am
Add New Note to this Reply
No Problem.
Glad to help 🙂