Support

Home Forums Event Espresso Premium Changing the way the date is formatted in the Event Registration

Changing the way the date is formatted in the Event Registration

Posted: November 13, 2012 at 2:23 pm

Viewing 2 reply threads


Cesar De Anda

November 13, 2012 at 2:23 pm

Hi everyone,

I have an event that has two sessions over the course of two days. I have been trying to change the way the date and times are displayed on the event registration page.

Here is an example of what I am trying to say:

Right now, it is like this:

Start Date: December 24, 2012
End Date: December 25. 2012
Start Time: 8:00 am
End Time: 12:00pm

Is it possible to get it somehow to display the following:

Start Date: December 24, 2012 Time: 8am – 5pm
End Date: December 25. 2012 Time: 8am – 12pm

Thank you in advance.


Cesar De Anda

November 14, 2012 at 10:51 am

Anyone?


Dean

November 14, 2012 at 1:40 pm

Hello Cesar,

Not easily if you wish it to do it automatically on future events. Basically, having it done with a single time is quite easy, but because of the secondary time, you would need to get access to the database or the time/date function and modify the template accordingly, which would take some php knowledge or a developer to do for you.

One easier method, but more manual work, would be to use the custom meta tags in the events. Label one as time1 and the other as time2 (or whatever) and fill out the appropriate times and add this code to your registration_page_display.php file (commenting out the original time/date code)

<table>
<tr>
<td><?php _e('Start Date: ', 'event_espresso'); echo event_date_display($start_date, get_option('date_format')); ?></td>
<td><?php echo do_shortcode('[EE_META type="event_meta" name="time1"]'); ?></td>
</tr>
<tr>
<td><?php _e('End Date: ', 'event_espresso'); echo event_date_display($end_date, get_option('date_format')); ?></td>
<td><?php echo do_shortcode('[EE_META type="event_meta" name="time2"]'); ?></td>
</tr>
</table>
Viewing 2 reply threads

The support post ‘Changing the way the date is formatted in the Event Registration’ 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