Home › Forums › Calendar Products › Events Calendar PRO › Fix for WooTickets "checkin" function implementation
- This topic has 3 replies, 3 voices, and was last updated 9 years, 4 months ago by Leah.
-
AuthorPosts
-
October 2, 2014 at 1:25 pm #783571MotorcoParticipant
I am implementing barcode checkin and found what I would call a bug in the class-wootickets implementation of the checkin function. It should check to see if the attendee was checked in already and return false if so. The current implementation is “hard-coded” for the ajaxy web form and does not account for external check ins so it would also break if there were 2 stations setup to check in attendees.
public function checkin( $attendee_id ) {
//actually CHECK to see if the attendee is already checked in first
$checkedin = get_post_meta( $attendee_id, $this->checkin_key, 1);
if ( $checkedin ){
//Oops, this is not what we expect, right?
return false;
} else {
update_post_meta( $attendee_id, $this->checkin_key, 1 );
do_action( ‘wootickets_checkin’, $attendee_id );
return true;
}
}October 3, 2014 at 8:10 am #785144BrianKeymasterThanks for bringing this to our attention. I will bring it up to the developers.
I am not sure if or when we would make a change to that, but it could be something we would be interested in adding.
Thanks
October 24, 2014 at 1:54 pm #833303BrianKeymasterI have created a ticket to look into adding this as a feature and included this ticket with it. We will update you through this ticket if we have any news. In the mean time I am closing this ticket as there is nothing more we can do.
Feel free to start a new thread if you have further issues. Thanks! 🙂
December 5, 2014 at 2:58 pm #909562LeahMemberHi there,
I wanted to post here and update you. Although we weren’t able to get a fix for the issue your reported into our upcoming 3.9 release, it is still on our list to get corrected. Thank you for reporting the problem, and for your patience and support while we get a solid fix in place. We’ll update you when a solution is ready to go.
Best,
Leah -
AuthorPosts
- The topic ‘Fix for WooTickets "checkin" function implementation’ is closed to new replies.