Home › Forums › Ticket Products › Event Tickets Plus › Can you see when someone has checked-in?
- This topic has 4 replies, 2 voices, and was last updated 7 years, 7 months ago by
Andras.
-
AuthorPosts
-
September 14, 2018 at 4:10 pm #1622444
Michelle
ParticipantThe reports show my attendees, order as completed, and checked-in, but I was curious if there is the ability to see what date they checked in for our multi-day event? I know you can get the number of tickets scanned after looking at it at the end of the day to get a collective number, but I would like to see more specifically when and which individuals and “orders” checked-in.
September 18, 2018 at 3:57 am #1624036Andras
KeymasterHi Michelle,
Thanks for reaching out!
The date and time of the check-in is not registered anywhere, only the status if the user is checked in or not. So I’m afraid currently there is no option to check when the check-in exactly happened.
It should be possible with some custom coding. If you add the following snippet to your child theme’s functions.php file, then the checkin time will also be recorded in the database:
[code language=”php”]
// This is for RSVPs
add_action( ‘event_tickets_checkin’, ‘my_checkin’ );// This is for WooCommerce Tickets
add_action( ‘wootickets_checkin’, ‘my_checkin’ );// This is for Tribe Commerce Tickets
add_action( ‘rsvp_checkin’, ‘my_checkin’ );function my_checkin( $attendee_id ) {
update_post_meta( $attendee_id, ‘_tribe_check_in_time’, date(‘Y-m-d H:i:s’) );
}
[/code]You will just need to find a way to get it to show where you need it.
Let me know if this helps.
Cheers,
AndrasSeptember 18, 2018 at 4:48 am #1624055Andras
KeymasterI was curious about this so played around a bit.
With this snippet you can get the checkin time show up on the attendee table.
[code language=”php”]
add_action( ‘event_tickets_attendees_table_ticket_column’, ‘add_checkin_time_to_attendee_details’ );
function add_checkin_time_to_attendee_details( $item ) {//var_dump($item);
if ( ! isset( $item[‘order_id’] ) ) {
return;
}if ( $item[‘provider_slug’] == ‘woo’ ) {
$order_id = $item[‘qr_ticket_id’];
}
else {
$order_id = $item[‘order_id’];
}
$checkin_time = get_post_meta( $order_id, ‘_tribe_check_in_time’, true );if ( empty( $checkin_time ) ) {
return;
}printf( ‘<div class="event-tickets-ticket-checkin-time">%1$s: %2$s</div>’, esc_html__( ‘Checkin Time’, ‘tribe-extension’ ), sanitize_text_field( $checkin_time ) );
}
[/code]Please note, while this has worked for me, there is no 100% guarantee it will work for you as well, but I do hope it will.
Let me know.
Cheers,
AndrasSeptember 18, 2018 at 9:02 am #1624334Michelle
ParticipantAndras,
Thank you so much! Will do.
September 19, 2018 at 12:51 am #1625020Andras
KeymasterLooking forward!
A.
October 11, 2018 at 9:35 am #1641559Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Can you see when someone has checked-in?’ is closed to new replies.
