Support

Home Forums Event Espresso Premium Remove Cancelled from CSV

Remove Cancelled from CSV

Posted: September 11, 2018 at 12:05 pm

Viewing 2 reply threads


baystate

September 11, 2018 at 12:05 pm

Hi,
Is there a way to have the CSV export not include cancelled registrations? I know we can check off which ones we want to export, but we have a lot of events and that can be time consuming and error prone. Would like to add a function/filter that would default to not included any registration with a Cancelled status.

This is mostly connected to transferring registrations as it sets the registration to cancelled on the event that the registration was transferred from. I know there is a column we can use as part of the CSV for reg status, but we prefer to not include that column, which is why we are looking for a more permanent/default filter if possible.

Thank you!


Josh

  • Support Staff

September 11, 2018 at 3:32 pm

Hi,

There is a filter hook that allows for changing the query. You can add the following code to your site:
https://gist.github.com/joshfeck/71c0a71619d0fd94897b2af94b533262
and it will remove any cancelled registrations from the regular CSV report. If you use the Filtered Report option, the above code will not be applied (because the filters used on the Registrations list page take precedence)

You can add the above to a functions plugin.


baystate

September 11, 2018 at 3:48 pm

Hi Josh,
That’s perfect, thank you very much!

Viewing 2 reply threads

The support post ‘Remove Cancelled from CSV’ 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