Posted: November 25, 2020 at 3:47 am
Hi! We have to list attendees for an event and check one by one if the person was present or not. I would like to add a status like ‘RNP’ => ‘Not présent during event’ Thanks ! |
|
Hi there, Event Espresso has a check-in feature that can be used to show attendance: https://eventespresso.com/wiki/registrations-ver-4-0/#40_checkins Are you using tickets for the event with a barcode shown? If soRegistrations can be checked in/out when they attend events using the EE4 Mobile Apps and/or the Barcode scanner add-on. So if you have the registration object you can then check the checkin status of that registration so see if it is checked in, checked out or nether (didn’t attend). Will that work for you? |
|
Ok, thanks !!! The result wanted is here, before the “light blue section” : https://moveo.revesdiab.fr/evenements/limpact-du-sommeil-sur-le-diabete/ In the last Cell of each row, I would like to provide the ability for the author of the event to change the check-in status then with a link doing an AJAX call. If the attendee has never been vérified => checkin_status_never |
|
Ok, so do you have the EE_Registration object or an EE_Attendee/Contact? |
|
Maybe the function toggle_checkin_status($DTT_ID = null, $verify = false) can be used ? Passing the constant wanted ? const checkin_status_in = 1; |
|
Yes I have the EE_Registration object ready in my loop. I’m working with content-espresso_event_attendees.php template in my chid theme Here is my code if you don’t mind : ` |
|
When you check a registration in it ‘s checked in against a Datetime, not an event which is why both of the above take DTT_ID. If you don’t supply one the check-in record is assigned to the ‘primary datetime’ for that event. |
|
Thank you so much ! Now I’m handling a 500 error in my AJAX call :
The last line gives me 500 error |
|
Ok sorry, I was calling -> get_all wich returns an array of EE_registration … That’s my code now :
The toggle-checkin_status() works now ! |
|
Yep, if you just want a single object and know it’s ID, use I’m glad it’s working for you now. |
|
Thanks a lot for the help Tony ! Everything works fine ! |
|
You’re most welcome. |
|
The support post ‘Add New Registration Status’ 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.