Support

Home Forums Event Espresso Premium invoice PDF translate date

invoice PDF translate date

Posted: July 2, 2014 at 12:24 pm

Viewing 6 reply threads


Olivier Tarbes

July 2, 2014 at 12:24 pm

Hello,

I’d like to know if we can translate the date in the invoice PDF,
The template shows something like “[registration_date]”

Thanks


Lorenzo Orlando Caum

  • Support Staff

July 2, 2014 at 4:40 pm

Hello,

It looks like it formats the date according to WP settings but it isn’t translated.

I’ve created a report for the developers to review so we can get this corrected in an upcoming release of EE4 and I’ll update this support post once I have more information.


Lorenzo


Olivier Tarbes

July 3, 2014 at 9:31 am

Ok thanks, let us know when this will be ready 🙂


Lorenzo Orlando Caum

  • Support Staff

July 3, 2014 at 12:26 pm

Sure, I’ll update your support post as I have more information.


Lorenzo


Josh

  • Support Staff

July 3, 2014 at 12:46 pm

In the meantime, you can try this work around if you’d like:

In event-espresso/modules/gateways/Invoice/lib/Invoice.class.php on line 277 ( in Event Espresso 4.2.7) change line 277 from:

$this->registration->date()

to:

date_i18n( get_option( 'date_format' ), strtotime( $this->registration->date() ) ),


Lorenzo Orlando Caum

  • Support Staff

July 3, 2014 at 12:48 pm

Hello again,

Could you try this out on a staging site (tested with 4.2.7):

Login to your site with an SFTP or FTP client and browse to this location:

wp-content/plugins/event-espresso-core-reg/modules/gateways/Invoice/lib

Then open the invoice.class.php file for editing.

Locate this line (about line 276):

$this->registration->date(),

Change to this:

date_i18n( get_option( 'date_format' ), strtotime( $this->registration->date() ) ),

Let us know if this helps.


Lorenzo


Josh

  • Support Staff

July 17, 2014 at 3:03 pm

Hi Olivier,

I wanted to let you know that the latest version of Event Espresso (4.2.8) fixes the issue you reported here.

Viewing 6 reply threads

The support post ‘invoice PDF translate date’ 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