Support

Home Forums Event Espresso Premium How do I add event time to confirmation display?

How do I add event time to confirmation display?

Posted: September 10, 2012 at 9:43 pm


Mark Taylor

September 10, 2012 at 9:43 pm

How can I add the event time to the confirmation display page? (templates/confirmation_display.php). I tried adding the following to line 23 with no avail:

What variable would I use instead?

Thanks

  • This topic was modified 11 years, 7 months ago by  Mark Taylor.
  • This topic was modified 11 years, 7 months ago by  Mark Taylor.
  • This topic was modified 11 years, 7 months ago by  Mark Taylor.


Mark Taylor

September 10, 2012 at 9:50 pm

Can’t get the code to post below. Trying the tags listed below and the curly braces insert icon up above, won’t work either. Oh well. I’m copying lines 17 – 22 of the confirmation_display.php page. Of course, changing the variable to: start_time or $start_time $event->start_time; to no avail.

Any ideas?

  • This reply was modified 11 years, 7 months ago by  Mark Taylor.


Dean

September 11, 2012 at 1:58 am

Hi Mark,

It took me a few, but by checking the includes/functions/time_date.php I came across these two that seem to work well in the confirmation_display.php

<?php echo event_espresso_get_time($event_id, $format = 'start_time'); ?>
<?php echo event_espresso_get_time($event_id, $format = 'end_time'); ?>

You will need to format them etc etc

Hope it helps

The support post ‘How do I add event time to confirmation display?’ 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