Can you see when someone has checked-in?

Home Forums Ticket Products Event Tickets Plus Can you see when someone has checked-in?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1622444
    Michelle
    Participant

    The 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.

    #1624036
    Andras
    Keymaster

    Hi 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,
    Andras

    #1624055
    Andras
    Keymaster

    I 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,
    Andras

    #1624334
    Michelle
    Participant

    Andras,

    Thank you so much! Will do.

    #1625020
    Andras
    Keymaster

    Looking forward!

    A.

    #1641559
    Support Droid
    Keymaster

    Hey 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Can you see when someone has checked-in?’ is closed to new replies.