Support

Home Forums Event Espresso Premium Add Time to Confirmation Display Page

Add Time to Confirmation Display Page

Posted: January 23, 2013 at 1:51 pm

Viewing 1 reply thread


Mark Taylor

January 23, 2013 at 1:51 pm

How do I add the time selected to the registration display page (confirmation_display.php)? I’ve added the following code, but all it does is add the LAST time that is for the event, not the time that the user selected for the event.
enter image description here

  • This topic was modified 11 years, 11 months ago by Mark Taylor. Reason: code not displaying
  • This topic was modified 11 years, 11 months ago by Mark Taylor.


Dean

January 24, 2013 at 3:36 am

Hi Mark,

Unfortunately there isnt an easy way to display that information.

At that point the attendee is stored in the database (the events_attendee table), so in order to get the information you would need to do an SQL query for the attendee and pull the data from there.

Something like this would work, though it may need tweaking

<?php

$a_sql = "SELECT * FROM " . EVENTS_ATTENDEE_TABLE . " WHERE id='" . $attendee_id . "'";
$a_sql .= $sort;
//echo $a_sql;
$attendees = $wpdb->get_results($a_sql, ARRAY_A);

$att_start_time = $attendees[0]['event_time'];
$att_end_time = $attendees[0]['end_time'];

echo $att_start_time; 
echo $att_end_time;

?>
Viewing 1 reply thread

The support post ‘Add Time to Confirmation Display Page’ 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