Support

Home Forums Event Espresso Premium Event Registration Report

Event Registration Report

Posted: June 8, 2016 at 3:46 pm


Elizabeth

June 8, 2016 at 3:46 pm

From customer:

Can we customize this report? We really only need a few pieces of information. If you aren’t good with excel, it’s difficult for people to get rid of the garbage in it.

One piece of good information is “did they apply a discount code” and some of our peeps miss that sometimes because it’s WAAAAAY down on the end and not seen.

So anyway, I’d just like Amount Paid, Complete or incomplete, first name, last name, email address and promotions. That’s it.


Tony

  • Support Staff

June 9, 2016 at 2:13 am

Hi Dorian,

The output of the CSV is filtered which mean you can alter the details that are included with a custom function.

We have an example here:

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

That snippet as is will only allow First Name, Last Name, Email address and a custom question with the ‘admin text’ set to ‘radio’.

However you can alter that to suit by adding any columns you want to include within the array, for example to include the Promo codes you add the column header to that snippet, in this case ‘Transaction Promotions’ – http://take.ms/B3IMI

So in that case the array would be:

$filtered_csv_row = array_intersect_key(
	$csv_row,
	array_flip( array(
__( 'First Name[ATT_fname]', 'event_espresso' ),
__( 'Last Name[ATT_lname]', 'event_espresso' ),
__( 'Email Address[ATT_email]', 'event_espresso' ),
'Transaction Promotions',
		) ) );

You can add the above snippet to a custom functions plugin.

The support post ‘Event Registration Report’ 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