Support

Home Forums Event Espresso Premium EE4 add date(s) on registration checkout pages

EE4 add date(s) on registration checkout pages

Posted: June 22, 2017 at 7:26 am


Evasionautoecole

June 22, 2017 at 7:26 am

Version WordPress: 4.8-fr_FR
Version PHP: 5.6.30
Version MonSQL 5.5.5
Version Event Espresso : 4.9.42.p
Version Event Espresso – MER – Multi Event Registration: 2.0.13.p

Hi Dears,

On registration checkout and payment option pages I would like to have next to the “Name and description” the date of the event.
I sometimes have events with more than one date…

How can I do this?

Thank you in advance for your help πŸ™‚
Kind regards


Tony

  • Support Staff

June 28, 2017 at 8:34 am

Hi there,

Currently, I can not see an easy way to add the event dates to the attendee information step but you can add them to the payment options step using this snippet:

https://gist.github.com/Pebblo/2b0433f851e18d6ddd6fb85eca78b440

Which will look something like this – http://take.ms/K0UCx

Is that what you are looking for?


Evasionautoecole

June 29, 2017 at 3:05 am

Hi Tony,

Yes πŸ™‚
It’s work well, just one request: the date and time are in English/American format (July 22, 2017 @ 8:00 am – 12:00 pm) instead of being in “French” (22 juillet 2017 @ …).

Texts “for” + “Date/time:” are well translated with WPML.

Thank you for your help πŸ™‚


Tony

  • Support Staff

June 29, 2017 at 6:31 am

The code actually checks if you have a datetime name and returns that, the date return is a fall back.

I’ve added another function to my gist which specifically adds the dates to the description, try that one in place of the other:

https://gist.github.com/Pebblo/2b0433f851e18d6ddd6fb85eca78b440#file-add_dates_to_line_item_desc2-php


Evasionautoecole

July 3, 2017 at 3:09 am

Hi Tony,

It’s PERFECT πŸ™‚
Thank you so much for your help!


Tony

  • Support Staff

July 3, 2017 at 4:42 am

You’re most welcome πŸ™‚ I’m glad that worked for you.

If have a minute we would really appricate if you could share your experience with Event Espresso or provide a review on WP.org.

The support post ‘EE4 add date(s) on registration checkout pages’ 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