Support

Home Forums Event Espresso Premium Extending Registration

Extending Registration

Posted: December 20, 2022 at 5:41 am

Viewing 7 reply threads


TheFreshUK

December 20, 2022 at 5:41 am

We’ve created a custom add-on for our attendees to complete a survey which is sent when they are checked-in.

We’re trying to track when a user completes this survey and store it against the registration. We’re exploring possible options for this, either using a custom EE Model that will store the relationship or if possible (and the preferred option) to somehow add a survey completed boolean to the registration.

Is it possible to add fields to the registration?


TheFreshUK

December 20, 2022 at 10:25 am

I’ve considered using EE_Registration::add_extra_meta() and this seems to fulfill our needs. But I’d need to somehow show this meta item on the registration backend view somewhere (so that admins are able to see if the survey was completed or not)


Tony

  • Support Staff

December 21, 2022 at 5:13 am

Hi there,

add_extra_meta() is how I would recommend setting something like this up.

Where are you looking to add the output in the admin to confirm this has ben completed?

We have filters you can use to display it on the registration list table, so Event Espresso -> Registrations (and the event-specific registrations output), would that work?


TheFreshUK

December 21, 2022 at 6:44 am

Hi Tony

Yes i’d like to display it on the registration list table and on the view registration page.

There’s also a link to the completed survey that we’d like to display on the view registration page if possible.

What filters would we need to look at?


TheFreshUK

December 21, 2022 at 10:19 am

Ideally on the view registration page it would be better as a meta box.


Tony

  • Support Staff

December 21, 2022 at 11:26 am

I assume that’s what you are storing as the value of the extra meta field?

For the registration list table I have an example of adding a custom column here:

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

FHEE_manage_event-espresso_page_espresso_registrations_columns

Filters the column themselves so you can add your own.

AHEE__EE_Admin_List_Table__column_custom-reg-qst-column__event-espresso_page_espresso_registrations

Filters the actual column to allow you to add a value. That’s a dynamic filter using the format:

AHEE__EE_Admin_List_Table__column_{column-name}__event-espresso_page_espresso_registrations

—-

FHEE_manage_event-espresso_page_espresso_registrations_sortable_column allows you to set the sortable columns for that view.

FHEE__Registrations_Admin_Page___get_orderby_for_registrations_query allows you to alter the query used on that view.

Most of the above are dynamic filters so if you search the codebase you won’t find them as is.

Does that help? With the Registration List table?

Ideally on the view registration page it would be better as a meta box.

Sure, I have an example of adding a metabox in that section here:

https://gist.github.com/Pebblo/239dcbbab9514c13ba48fe3e8e9a5add

Does that give you everything you need?


TheFreshUK

December 21, 2022 at 11:41 am

You sir, are a legend.

That should give me everything I need. Thanks Tony!


Tony

  • Support Staff

December 22, 2022 at 8:43 am

You sir, are a legend.

Ha, thanks 🙂

That should give me everything I need. Thanks Tony!

Awesome and you’re most welcome.

Any further issues/questions/complimentary suggestions on how legendary I may (or may not) be… just let me know.

Viewing 7 reply threads

The support post ‘Extending Registration’ 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