Support

Home Forums Event Espresso Premium EE3 export attendee's to CSV how to change the fields in this exported file?

EE3 export attendee's to CSV how to change the fields in this exported file?

Posted: May 7, 2018 at 9:16 am

Viewing 6 reply threads


Jordy van Overeem

May 7, 2018 at 9:16 am

Hi,

I use EE3 and we export the attendee’s always before an event. But there are many fields in this file that are not needed. But there are also some fields where we’ve some questions about. We don’t understand where some fields are coming from and we want to add some extra fields to the export.

We also use WP members extension where we can add extra questions etc. But the logic is somewhere, where we can’t find it…


Josh

  • Support Staff

May 7, 2018 at 4:12 pm

Hi Jordy,

You’ll find the logic in the includes/functions/export.php file. Within that file there’s a pluggable function named espresso_export_stuff(), and that’s the function that executes when you do an attendee export. Since it’s a pluggable function, you can copy the entirety of the function into your own plugin, make modifications, and your copy will be used instead of the original.


Jordy van Overeem

May 8, 2018 at 12:35 am

Where do i need to place this export.php to make modifications so the original stays original?


Jordy van Overeem

May 8, 2018 at 12:45 am

But as you can see in the export screenshot at link: https://www.rszmotorsport.nl/screeen.png

there are many not standard fields, i wonder where are the coming from and how can i delete or add certain information to this export? In the export.php file is no such information or code about this.


Tony

  • Support Staff

May 8, 2018 at 3:12 am

Where do i need to place this export.php to make modifications so the original stays original?

You don’t place export.php anywhere, you copy the espresso_export_stuff() function from within that file and place it in a custom functions plugin.

So start by making the custom functions plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Then in export.php copy lines 230 to 594 (assuming you are using the latest version), place that code in your custom functions plugin.

Now you have a copy of the function that exports the details from EE3, EE will use that version in place of the original function.

But as you can see in the export screenshot at link: https://www.rszmotorsport.nl/screeen.png
there are many not standard fields,

Not standard fields? What are standard fields?

The screenshots show the EE attendee csv, thats the ‘standard’ export for that code.

i wonder where are the coming from and how can i delete or add certain information to this export?

We’ll need more specific details to be able to help, which fields do you want to remove?

What details do you want to add?


Jordy van Overeem

May 8, 2018 at 4:56 am

Hi Tony,

Can you please email me at info@freshymedia.nl? Then i can explain you a bit more.


Tony

  • Support Staff

May 8, 2018 at 5:08 am

Done.

Viewing 6 reply threads

The support post ‘EE3 export attendee's to CSV how to change the fields in this exported file?’ 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