Posted: 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! |
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.
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. |
|
|
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? |
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: Or one to exclude specific fields, like this: 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. |
|
|
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.