Support

Home Forums Event Espresso Premium Customize CSV Export options

Customize CSV Export options

Posted: February 17, 2017 at 12:32 pm


gntv.info

February 17, 2017 at 12:32 pm

Hello,

I’m working on a registration system with the multiple event registration module. My attendees are registering for up to three events at once. I can get all of the information I need from the registration form, but I would like the CSV export to be organized differently. Namely, I would like it to place each registration sold in the same cart (purchased together) horizontally in the csv file, instead of creating a new row each time.

Is there a way to customize how the data is visualized from the CSV export?

Thanks


Tony

  • Support Staff

February 17, 2017 at 2:42 pm

Hi there,

The CSV’s rows are filterable via the FHEE__EE_Export__report_registrations__reg_csv_array hook. Whatever you return from that filter will be used for each row of the CSV. The hook is passsed the csv_row and the registration from the database so you can pull as much information as needed, however note that combining a group registration (which as mentioned would normally be a single row per registration) into group registrations as requested will not be an easy task.

Here is are a couple of examples of how you can filter the details:

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

https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/jf_ee_registration_report_add_checkin_timestamps.php

The above are just example of how you can use the filter and will not acheieve the result you are looking for, you’ll need to customize the output to suit.

The support post ‘Customize CSV Export options’ 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