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 Invoice date changes | Event Espresso - Staging Server
Someone registers on 1st May
Email sent to attendee – click to download invoice OK – invoice downloaded will say 1st May
Email sent to admin office – click to download invoice OK – invoice downloaded will say 1st May
If the link is clicked later – 15th May – (accounts office likely to do this after the date) to check records etc. then the invoice will say 15th May.
This invoice date should stay the same ie NOT change as it is no use for accounting purposes. Unless invoice is downloaded immediately – sometimes not possible.
It seems to be grabbing the current date rather than the registration date.
The invoice does display the date it was generated on (similar to an invoice displaying a date sent). I can see why in this case you want it to always display the date the person registered.
You can change the default by going into the invoice template.php file (located in event-espresso/gateways/invoice/) and follow these steps:
Step 1: set a few new variables which will convert the date registered value into a date timestamp and format the date:
Then on the line that normally displays the date the invoice was generated (~ line 114) you can change it to something like:
$pdf->Cell(180, 0, __('Date of Registration: ', 'event_espresso') . $my_reg_date_display, 0, 1, 'R'); //Set invoice date
Viewing 1 reply thread
The support post ‘PDF Invoice date changes’ 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.