Support

Home Forums Event Espresso Premium Add check-in status to other pages

Add check-in status to other pages

Posted: January 27, 2020 at 2:33 pm


blipps

January 27, 2020 at 2:33 pm

Is it possible to add the check-in status to other admin pages as an additional column? For example, we would like to add the check-in status to the registrations page for a specific event. In this case it would be the page that says “Viewing registrations for the event”. We would also like to add this to the users specific page where at the bottom it has a running list of all events a user has registered for. Since we are using EE for courses we need a more efficient way to see if a user has checked in to a course. I understand this will require additions to the functions file but I’m not finding much guidance on where to begin.

Thanks ahead.


Tony

  • Support Staff

January 28, 2020 at 9:59 am

Hi there,

Is it possible to add the check-in status to other admin pages as an additional column? For example, we would like to add the check-in status to the registrations page for a specific event. In this case it would be the page that says “Viewing registrations for the event”.

Yes, this is possible, we run the list table columns through filters to allow you to add additional columns.

Depending on how familiar you are with PHP, I have an example of adding an additional column here:

https://gist.github.com/Pebblo/88f2a0a9213c716e4886a249e7709245

That doesn’t add the details you are looking for (it adds a custom column containing a registration form answer) but shows you how to do it.

Something to bear in mind is a single registration can have access and check-in on multiple datetimes. I don’t know if you are using multiple datetimes in your events but your code will need to accommodate that.

Josh has previously created an example gist that shows how to add check-in data to the CSV, you’ll need something similar for your column:

https://gist.github.com/joshfeck/4a8ea5b02855ebd4d7cc720dd6112d5f

We would also like to add this to the users specific page where at the bottom it has a running list of all events a user has registered for.

This can be done but require hooking into EE’s template function and overriding the default template with your own (it is not currently expected that a custom template will be loaded here so requires custom code).

How comfortable are you using hooks and with the above examples?

I understand this will require additions to the functions file but I’m not finding much guidance on where to begin.

We do not recommend adding the code to change this to the theme’s functions.php file. The reason being is the functions.php file from your theme should hold functions specific targeting functions/features within your theme and the above are not a part of your theme. If at some point further down the line you change themes, you lose the customizations you’ve included in that file.

You can add custom functions that should not be linked with your theme to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


blipps

February 3, 2020 at 8:19 am

This helps a bit but I’m still lost. I actually use the code above to show a custom reg question but adding the column for the check-in is alluding me. We do not have multiple date times for an event.


Tony

  • Support Staff

February 11, 2020 at 6:37 am

OK, in that case, this is likely something we could put together for you using a support token.

Failing that you could try contacting the folks at codeable to see if this is something they can build for you.

The support post ‘Add check-in status to other pages’ 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