Support

Home Forums Event Espresso Premium Marking one ticket at a time as Attended in Event Overview

Marking one ticket at a time as Attended in Event Overview

Posted: October 1, 2013 at 9:18 am

Viewing 4 reply threads


J-F Beaulieu

October 1, 2013 at 9:18 am

In order to expedite our check-in process at the door of our event, as we expect many people to arrive at the same time, we have found it faster to use the Event Overview and mark people as attended instead of using the ticketing plugin with scanning the QR Code.

The problem we are running into is when people have purchased several tickets but show up individually, there does not seem to be a way of only checking in 1 ticket out of the several that have been purchased under one name.

Is there any way around this?

WP Version: 3.6.1
Event Espresso Version: 3.1.35.P
Add-Ons: Ticketing 2.0.6-beta
Recently Upgraded Installation
http://montrealincognito.com/achetez-vos-billets-buy-your-tickets/?ee=4


Sidney Harrell

October 1, 2013 at 9:52 am

Yes, you’ll have to go into includes/admin-reports/event_list_attendees.php and change lines 55-71 to be:

$check_in_or_out = $value == "on" && (array_key_exists('attended_customer', $_POST) || array_key_exists('unattended_customer', $_POST)) ? 1 : 0;

				$SQL = "SELECT * FROM " . EVENTS_ATTENDEE_TABLE . " WHERE id = %d ";
				$attendee = $wpdb->get_row($wpdb->prepare($SQL, $att_id));
				$ticket_quantity_scanned = $attendee->checked_in_quantity;
				$tickets_for_attendee = $attendee->quantity;
				if ( $check_in_or_out && !empty($_POST['attended_customer']) ) {
					$updated_ticket_quantity = $ticket_quantity_scanned+1;
					$type = 'checkin';
				}
				if ( $check_in_or_out && !empty($_POST['unattended_customer']) ) {
					$updated_ticket_quantity = $ticket_quantity_scanned-1;
					$type = 'checkout';
				}
				if (($check_in_or_out && $updated_ticket_quantity > $tickets_for_attendee && $type = 'checkin' )
								||
								($check_in_or_out && $updated_ticket_quantity < 0 && $type = 'checkout')) {


J-F Beaulieu

October 1, 2013 at 12:12 pm

Hi Sidney,

Thanks for the response – I tried to modify those lines to include what you provided and now when I click on the Attendees list to my event it gives me the following:

Fatal Error: syntax error, unexpected ‘<‘ in /home/montre13/public_html/wp-content/plugins/event-espresso/includes/admin-reports/event_list_attendees.php on line 72

If I remove line 72 as well ‘<div>’ then it gives me the following error:

Fatal Error: syntax error, unexpected ‘{‘ in /home/montre13/public_html/wp-content/plugins/event-espresso/includes/admin-reports/event_list_attendees.php on line 1


Sidney Harrell

October 1, 2013 at 2:27 pm

Sorry, the code before the change was lines 55-66:

$check_in_or_out = $value == "on" && array_key_exists('attended_customer', $_POST) ? 1 : 0;

				$SQL = "SELECT * FROM " . EVENTS_ATTENDEE_TABLE . " WHERE id = %d ";
				$attendee = $wpdb->get_row($wpdb->prepare($SQL, $att_id));
				$ticket_quantity_scanned = $attendee->checked_in_quantity;
				$tickets_for_attendee = $attendee->quantity;
				$updated_ticket_quantity = $check_in_or_out ? $tickets_for_attendee : 0;
				$type = $check_in_or_out == true ? 'checkin' : 'checkout';
				//$type
				if (($ticket_quantity_scanned >= 1 && true == $check_in_or_out)
								||
								($ticket_quantity_scanned <= 0 && false == $check_in_or_out)) {

The new code has some more lines in it, so it ends up being 55-71.


J-F Beaulieu

October 2, 2013 at 8:24 am

This worked, thank you very much!!

Viewing 4 reply threads

The support post ‘Marking one ticket at a time as Attended in Event Overview’ 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