Support

Home Forums Event Espresso Premium Combining registration filters in admin to view approved & incomplete at once

Combining registration filters in admin to view approved & incomplete at once

Posted: April 13, 2020 at 2:31 pm


tyler

April 13, 2020 at 2:31 pm

Hi,

In the admin, the status of registrations can be filtered: Approved, Pending, Payment, Wait List, Incomplete, Not Approved, Declined, Cancelled

Can you create filter for both Approved/Incomplete? Our client would really like to be able to see both of these types of registrations at once.

Thank you


Josh

  • Support Staff

April 13, 2020 at 6:27 pm

Hi,

This isn’t an available filter option. May I ask why would they want to see incomplete registrations along with Approved? The reason I ask is because if a registration is incomplete, that’s usually a transaction where they didn’t complete the registration form.


tyler

April 14, 2020 at 9:03 am

Hi Josh, thank you.

I’m not really sure; we’ve tried explaining that to the client as well, but it was still their request.

They’ve now asked if there’s any way to display a filter here showing approved & pending payment at the same time?


Tony

  • Support Staff

April 14, 2020 at 10:31 am

Hi there,

Are you sure the user is not requesting they can view registration with ‘Reg Status’ of Approved and a ‘Transaction status’ of Incomplete?

An example of those would be like this: https://monosnap.com/file/9AIuFP3DKGFGRgnmEw9P4KhoBGxnxG

Grouping Reg Approved and Reg Incomplete doesn’t really give you any useful information so I’m not sure why they would need that.

They’ve now asked if there’s any way to display a filter here showing approved & pending payment at the same time?

There are filters built into Event Espresso that will allow you to hook into the filter output and add additional filters, then others that allow you to alter the query used to pull the events based on those filters but you’ll need custom development to do the above.

The filters mentioned are:

FHEE__Extend_EE_Registrations_List_Table__filters

and

FHEE__Registrations_Admin_Page___get_where_conditions_for_registrations_query

If you are comfortable with PHP you can use those to do the above but we currently don’t have any examples of how to do what you are requesting.


tyler

April 14, 2020 at 10:32 am

Yes, I think we’ve convinced them that there’s no reason to include incomplete.

HOWEVER, they do want to group pending & approved registrations. Is there a way to do that?


Tony

  • Support Staff

April 14, 2020 at 11:37 am

No, at least not currently within the UI.

However, the hooks I mentioned above can be used for you to add your own filters to do whatever you prefer with those. For example, you could use FHEE__Extend_EE_Registrations_List_Table__filters to replace the dropdown filter with a set of checkboxes (likely need some creative styling to fit) which then allows you to set any status combination you prefer, then use FHEE__Registrations_Admin_Page___get_where_conditions_for_registrations_query to check the request for which reg statuses are set and feed it to our model for the query.

This is about the closest example we’ve got to anything like this currently:

https://gist.github.com/Pebblo/22995de5472c46a361ecc206bc8e9f9b

That adds a ‘TXN Status’ dropdown that allows you to filter how I mentioned in my previous post so it doesn’t do what you need, but gives you an example of how you can alter the table filters.

The support post ‘Combining registration filters in admin to view approved & incomplete at once’ 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