Support

Home Forums Event Espresso Premium Sort dashboard by event date

Sort dashboard by event date

Posted: October 31, 2024 at 12:17 pm

Viewing 8 reply threads


weblinxinc

October 31, 2024 at 12:17 pm

Is it possible to sort the events dashboard by date on load?


weblinxinc

October 31, 2024 at 12:18 pm

To clarify, we know you can click the headings in the table, but we’d like the initial sort order to be by the events date.


weblinxinc

October 31, 2024 at 12:20 pm

A couple of additional questions from my client if you don’t mind, or I can open separate threads…

> If someone registers for an event and an account is created for them, will subsequent registrations with the same email address appear in that users account?

> While doing a test registration, I couldn’t find a way to go back to the Registration/Attendee Information screen after proceeding to payment options. I imagine someone might need to go back to correct a name misspelling or email address, etc. Is this possible?


Tony

  • Support Staff

November 1, 2024 at 7:40 am

Hi there,

Is it possible to sort the events dashboard by date on load?

Yes, its possible using a snippet like this:

https://gist.github.com/joshfeck/3ad962e282219f922021ebf55d6d79e2

That just sets the filters using the Query string for the menu item and as it stands orders ASC and only upcoming events.

From the above you’ll likely need something like:

'admin.php?page=espresso_events&orderby=Datetime.DTT_EVT_start&order=desc';

> If someone registers for an event and an account is created for them, will subsequent registrations with the same email address appear in that users account?

Only if using the same First Name, Last Name and Email, but yes.

Note for this to work they need the WP user integration add-on active.

> While doing a test registration, I couldn’t find a way to go back to the Registration/Attendee Information screen after proceeding to payment options. I imagine someone might need to go back to correct a name misspelling or email address, etc. Is this possible?

Not from Payment Options to Attendee info no, they would need to restart the registration currently.

However, the thank you page does have the option to edit the registrant date and a link can be included in the emails if needed.


weblinxinc

November 1, 2024 at 1:42 pm

Great, thanks for the info! One more related question, is there a filter on the “Overview” tab link as well? https://imgur.com/a/ardJdiM


Tony

  • Support Staff

November 1, 2024 at 3:25 pm

Not that I can see but I’ve asked one of our devs to double check.


weblinxinc

November 15, 2024 at 1:42 pm

Have you heard back about this question? We’d also like to modify the “Event Espresso” link in the admin toolbar… our client is very pick about ordering.

Additionally, is there any way to adjust the query used on the overview page? We’d like to exclude a specific category unless it’s explicitly selected.


weblinxinc

November 15, 2024 at 1:59 pm

Somewhat related…

1. The filters on the “Overview” page don’t seem to be working correctly; for “Select a Month/Year” we only see “September 2025,” but there are many events in other months.
2. Is there any way to sort by a date range? If you can point me to the hooks, I can implement this myself.
3. Is there any way to allow searching in the dashboard to include searching by venue?


Tony

  • Support Staff

November 19, 2024 at 5:39 am

Have you heard back about this question? We’d also like to modify the “Event Espresso” link in the admin toolbar… our client is very pick about ordering.

Currently you can’t filter those URLs, not the overview or admin toolbar menu (we’ll technically you can with the admin bar but you would need to use the admin_url WordPress hook and it’s applied everywhere.

Additionally, is there any way to adjust the query used on the overview page? We’d like to exclude a specific category unless it’s explicitly selected.

Yes, and actually you would be better using that to filter the default covering and leave the URL’s as they are.

The hook to filter the query is FHEE__Events_Admin_Page__get_events__query_params

To change the default ordering you can do something like this:

https://gist.github.com/Pebblo/833a66cc6a191b7df99a72b53727a01f

(Remove the snippet I get you above HERE)

If you change the default ordering that will apply to all locations when no additional filtering is set.

1. The filters on the “Overview” page don’t seem to be working correctly; for “Select a Month/Year” we only see “September 2025,” but there are many events in other months.

Hmm, strange.

Have those events been published?

Is this with no other filters applied?

2. Is there any way to sort by a date range? If you can point me to the hooks, I can implement this myself.

A filter to add an additional filter for a range to apply?

If so there’s a dynamic filter for this:

$filters   = apply_filters(
    "FHEE__{$classname}__filters",
    $this->_get_table_filters(),
    $this,
    $this->_screen
);

For the EE event list table the hook name would be FHEE__Extend_Events_Admin_List_Table__filters.

You can apply the values to the query using the same filter from above FHEE__Events_Admin_Page__get_events__query_params.

3. Is there any way to allow searching in the dashboard to include searching by venue?

Yes, you’d use with the same filter above or FHEE__Events_Admin_Page__get_events__where which is applies specific to the where conditions right before the other filter:

$where          = apply_filters('FHEE__Events_Admin_Page__get_events__where', $where, $request_params);
        $query_params   = apply_filters(
            'FHEE__Events_Admin_Page__get_events__query_params',
            [
                $where,
                'limit'    => $limit,
                'order_by' => $orderby,
                'order'    => $order,
                'group_by' => 'EVT_ID',
            ],
            $request_params
        );

Either of those can be used to add additional conditions when searching.

Viewing 8 reply threads

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso