Posted: July 3, 2018 at 11:13 am
Hi Espresso-team |
|
Hi, This can be done manually (do a CSV report, then attach to an email and email to the instructor). Currently Event Espresso 4 does not have an automated feature that can send out emails like this. |
|
Thanks, Yosh, for your quick reply. I already considered that, but found the information in the CSV-file too confusing for our teachers. Is there a way to filter just the registrantant names and eventually phone numbers into the CSV-output? |
|
Yes the CSV report is filterable via the WordPress plugin API. You can use the example code from the code library: Since you mentioned including the phone number field, you can change the code where it has: You can add the above code snippet to a functions plugin, then activate the plugin. |
|
Hi Josh, thanks for your advice. As recommended I created a site specific plugin-code-snippet-libraryin, included the code you pointed to (add_filter( ‘FHEE__EE_Export__report_registrations__reg_csv_array’, ‘espresso_reg_report_filter_columns’, 10, 2)…; By the way: we´d also need fields (columns) from the primary registrants meta (which we added as an extra questions group, e.g. Birthday (date), and also an empty column but with a header like “info” to be filled out later. (I´m more or less familiar with php and javascript/jQuery) |
|
You can check your PHP error log which could point to an error in the code that got copied & pasted. Since you now mention that you also need other fields, this other approach where you remove specific fields would be recommended: |
|
Hi Josh, thanks for quickly responding. The above mentioned site plugin throws the following error warning/exception – even though all the code seems to be correct. Anyway I tried the other script you mentioned and it works fine so far, Thanks for your help! |
|
The code within the site plugin does not cause the Headers already sent warning, however if there are any spaces, new lines, or other stuff before an opening |
|
HI Josh – there´s a new issue concerning the CSV-Output: We n o w would like to include also the event times (e.g. 7:00 h – 17:00 h) and a custom field that we created with each event named instructors (containing the names of the courses instructors (instruktoren)). Both don´t exist in the original “filtered” CSV-output-file. How would you suggest to gon on (I have seen the following script https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/jf_ee_registration_report_add_checkin_and_checkout_timestamps.php – but I am not shure, either which variables to use nor how to order or use in connection with the other function $fields_to_exclude_from_csv = array(){}). Thank you very much for your support! |
|
You can add the following to inside the function you already have:
Then to add start and end time columns: |
|
Thanks, Josh, the above script worked after a little correction of the line: $intruktoren = get_post_meta( $event_id, ‘instruktoren’, true ); I had set up the custom meta field with a big starting “I” so the function worked with: |
|
The support post ‘Send email with names of ALL "primary registrants" of a specific event to admins’ 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.