Support

Home Forums Event Espresso Premium Export not all registration Data, just a few

Export not all registration Data, just a few

Posted: August 2, 2021 at 7:17 am


simonre

August 2, 2021 at 7:17 am

Hey!

For my client I need to export the registrations for a event but not all information. Just a few. Is it somehow possible to set which information should be exported to the table? Custom code would also be fine for me.

I think about something like removing the lines in the php file or something like this? Maybe you could point me to the right direction.

Tanks!


Tony

  • Support Staff

August 2, 2021 at 9:08 am

Hi there,

Can you add more details on what information you want to export?

We don’t have an option to export specific rows from within the table although you can narrow it down some using the table files and then export that output, for example only exporting ‘Pending Payment’ registrations.

Or, if it’s specific columns you want to include/exclude we don’t have an option to do so via the user interface but you can do so via custom code. If you can add more details on what you are looking to include in the CSV report I can advise further from there.

I think about something like removing the lines in the PHP file or something like this? Maybe you could point me to the right direction.

We don’t provide support for modifying files within the plugin, however, we have many hooks within Event Espresso which allows you to change a lot of the output so modifying core files is generally unnecessary.


simonre

August 4, 2021 at 12:05 am

Hi Tony,

thanks for your reply.

Yes, I want to export a few columns. Right now it exports everything like, price, transaction state and more.

What I need is just a export with the contact data and event name. How can I realize it with the hooks and which hook do I have to use?


Tony

  • Support Staff

August 4, 2021 at 3:55 am

Ok, so you have a few options for this, we have multiple examples of limiting the registration report here:

https://github.com/eventespresso/ee-code-snippet-library/tree/master/admin/registration-reports/core

From the above, I would use a function to either set the specific fields I wanted to include, like this one:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/registration-reports/core/tw_ee_registration_report_limit_columns_shown.php

Or one to exclude specific fields, like this:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/registration-reports/core/tw_registration_report_exclude_fields.php

The second one if useful as it will leave the registration questions in the report and you don’t need to edit it each time you add a new question.

In either function, the fields you use in the array should match the CSV column names exactly.


simonre

August 4, 2021 at 8:43 am

Thanks Tony! That worked for me.

The support post ‘Export not all registration Data, just a few’ 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