Posted: December 11, 2019 at 12:25 pm
|
I’ve browsed a few topics on modifying the CSV file that generates when exporting registrations in an event but it looks like most of the github links no longer work. What I’m specifically looking for is to modify the file to be identical to this template while maintaining the headers. The relevant EE-related columns would be First Name, Last Name, Email (optional), and Phone Number. The other columns with headers must still be there and the “Evaluation” column needs to be prefilled with “Successful” for each registrant. Is this something that’s possible? Thanks! |
Hi there, A lot of the gist examples were moved to our code library and we have examples of modifying the output of the CSV here: https://github.com/eventespresso/ee-code-snippet-library/tree/master/admin/registration-reports So you want I’m curious, how is Email option here? EE requires an email address so I’m not sure how it would be optional? |
|
|
Sorry for not being clear, but I was referencing the specific column names in the example sheet I linked. Email is obviously not optional when registering. |
|
And to answer your other question, your understanding of my need is good. I need the report to reflect that template sheet I linked and include all headers and placeholders. |
In that case, you just need a snippet like this: Set your
The fields set in that array are the ‘columns’. EE then uses those fields as keys and if it finds answers related to those field provides a value. Right before this line:
Add something like:
That will prefill that column for each registrant. You can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
|
Thank you so much for your help! You just saved my staff precious time when importing our classes into our other software program. I will continue to recommend Event Espresso to anyone who needs registration software! |
The support post ‘CSV Export – Modifying the Output’ 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.