Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Add Time to Confirmation Display Page | Event Espresso - Staging Server

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, 12 months ago by Mark Taylor. Reason: code not displaying
  • This topic was modified 11 years, 12 months ago by Mark Taylor.


Dean

  • Support Staff

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 - Staging Server