Support

Home Forums Event Espresso Premium EE4 Export

EE4 Export

Posted: September 8, 2017 at 8:26 am

Viewing 28 reply threads


Elizabeth

September 8, 2017 at 8:26 am

From customer:

Hey there!

I’m wondering if we can make a change to the export reservations option in Event Espresso.

The problem is when there are multiple options to register for, you can see that on the main page but not when you export.

But when you export it, you don’t know what they registered for. So we basically need “TKT Price” added to the export.


Josh

  • Support Staff

September 8, 2017 at 8:40 am

Hi Dorian,

That information is actually included in the CSV report. Specifically in the Ticket Name and the [REG_final_price] columns. Can you check to see if those columns are included in your reports? If they are not included, maybe there was a customization made that removes them?


Elizabeth

September 8, 2017 at 8:47 am

Would you happen to know the path to that customized file for the export?


Josh

  • Support Staff

September 8, 2017 at 8:54 am

It would quite likely be within a custom plugin in wp-content/plugins or within your WordPress theme’s functions.php file.


Elizabeth

September 8, 2017 at 2:56 pm

I remember a while back there was a certain EE file you can include certain columns and exclude others.


Josh

  • Support Staff

September 8, 2017 at 3:12 pm

The file that gets customized would not actually be within the Event Espresso plugin, or at least we don’t recommend modifying those.


Elizabeth

September 8, 2017 at 3:15 pm

ah…yes it was the function.php….thanks!


Elizabeth

September 8, 2017 at 3:26 pm

TKT Price is not in the spreadsheet. Or at least the class they register for….that is also not there.


Tony

  • Support Staff

September 11, 2017 at 4:19 am

TKT Price is not in the spreadsheet.

TKT_Price is not included, you can use the [REG_final_price] field for this. It’s the ticket price with any price modifiers applied.

Or at least the class they register for….that is also not there.

What is this? The ticket name or the event name?


Elizabeth

September 11, 2017 at 7:16 am

We need it to show the Event name. Does [REG_final_price] show ht event name?


Josh

  • Support Staff

September 11, 2017 at 8:59 am

Hi Dorian,

[REG_final_price] does not. If you’re viewing registrations for a specific event, then name of the event will not be included as a column (redundant information because all of the registrations will be for that event).

If you go to the Event Espresso > Registrations page, then filter by anything other than the event (like filter by date, month, category), then you’ll have a list of registrations for different events. When you click the Filtered CSV reports button on that view, the CSV report’s first column will include the event name.


Elizabeth

September 11, 2017 at 9:13 am

She doesn’t want so many columns in the export, so using the following… but need to know which field to use to show the event name.

//only include these 4 columns in the registration CSV output
add_filter( ‘FHEE__EE_Export__report_registrations__reg_csv_array’, ‘espresso_reg_report_filter_columns’, 10, 2);
function espresso_reg_report_filter_columns( $csv_row, $registration_db_row ) {
$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’ ),
‘Phone[ATT_phone]’,
‘Transaction Status’,
‘Amount Paid’,
‘Gateway Transaction ID(s)’,
‘Transaction Promotions’,
‘Count of this registration in the group registration [REG_count]’,
‘radio’,//custom question’s admin label, doesn’t need to be translated. note though: if you ever change the custom question’s admin label, this code will need to be adjusted
) ) );
return $filtered_csv_row;
}

?>


Josh

  • Support Staff

September 11, 2017 at 9:36 am

So you removed the Event column? To restore it, you’ll need to include
Event in your custom array.


Elizabeth

September 11, 2017 at 10:20 am

I did an export from another site and didn’t see the even in a column.

Do I add ‘Event’, ?


Josh

  • Support Staff

September 11, 2017 at 10:25 am

Hi Dorian,

When you did a report from the other site, was the page filtering by event? If so, there will not be an event column. You’ll need to view a registration list that has more than one event to see an event column.


Elizabeth

September 11, 2017 at 11:01 am

Thanks, I’ll check…

but for the code I have above, would I put ‘Event’, to show the event?


Josh

  • Support Staff

September 11, 2017 at 11:07 am

Yes you’ll include Event in your custom array.


Elizabeth

September 12, 2017 at 1:50 pm

I added ‘Event’ and it did not work.


Josh

  • Support Staff

September 12, 2017 at 2:32 pm

Can you doublecheck your code modification? Also, please remember that if you’re pulling a registration list for a single event, the event column isn’t displayed which is by design. The event column only displays if it’s a list of registrations from many events.


Elizabeth

September 12, 2017 at 2:38 pm

The other fields show in the export…just not events:

<?php

//only include these 4 columns in the registration CSV output
add_filter( ‘FHEE__EE_Export__report_registrations__reg_csv_array’, ‘espresso_reg_report_filter_columns’, 10, 2);
function espresso_reg_report_filter_columns( $csv_row, $registration_db_row ) {
$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’ ),
‘Phone[ATT_phone]’,
‘Transaction Status’,
‘Event’,
‘Amount Paid’,
‘Gateway Transaction ID(s)’,
‘Transaction Promotions’,
‘Count of this registration in the group registration [REG_count]’,
‘radio’,//custom question’s admin label, doesn’t need to be translated. note though: if you ever change the custom question’s admin label, this code will need to be adjusted
) ) );
return $filtered_csv_row;
}

?>


Josh

  • Support Staff

September 12, 2017 at 3:05 pm

Hi Dorian,

There seems to a miscommunication here about the reports and whether you’re getting a report of registrations from a specific event or it it’s a filtered report of registrations from many events. Again, and this is very important, if you’re getting a list of registrations from one event, then the event column is not displayed.


Elizabeth

September 12, 2017 at 3:32 pm

She is doing this:

When you click on approved registrations, the number. You then see all the registrations. Then click Event Registration CSV Report.


Tony

  • Support Staff

September 13, 2017 at 3:56 am

That sounds like are clicking to view the registrations for a specific event, maybe this link – http://take.ms/VgJCT

If so that’s a report for a specific event, we don’t include the event title within a report for a specific event as its redundant information.

For example in the above your exporting registrations for a specific event (the approved registrations for a specific event to be exact), so an event title would simply repeat the name of that event over and over.

If you go to Event Espresso -> Registrations and click the ‘All Registrations CSV Report’ you’ll export registrations for multiple events… then EE includes an Event column because you need to know which registrations go with which event. When you export registrations for a specific event, you already know which event they are for.


Elizabeth

September 13, 2017 at 10:20 am

From customer:

Hi Dorian,

What you’ve explained below is not at all what I was asking ☹ I’m not trying to understand All registrations CSV. I’m trying to understand individual tickets inside a single event.

I don’t want the name of the specific event to show on the report. As you said, that’s duplicate. What I’m trying to explain (not very well evidently) is that a single event may have two different tickets for that single event. I’m going to repeat what I said below again exactly.

So single event, I’m choosing the 9U Speed event:

15 people reserved the home plate and 30 people reserved the 3 pumpkin stack. Now I need to know who those 15 and 30 peoples names are so that I can hand them the right door hanger….(Make sense?)

So now I’m clicking on the 37 (Approved Registrations) and I get all their names and what they registered for which is good. But it’s hard to page through 37 registrations so we want to export it to excel, but when you export, you lose their individual ticket.

You’ll see there is a “EVENT REGISTRATIONS” and a “FILTERED” but neither gives you the “ticket” that they registered for :


Tony

  • Support Staff

September 13, 2017 at 10:46 am

Right, so it sounds like they want the ticket name within the CSV, not the event name.

You need to add ‘Ticket Name’ to your function above to include that within the CSV.

If unsure of the correct column, I recommend removing your filter above, you can do that by just commenting out this line:

add_filter( ‘FHEE__EE_Export__report_registrations__reg_csv_array’, ‘espresso_reg_report_filter_columns’, 10, 2);

Then having them run an export and confirm which columns from the full export they want to keep.


Josh

  • Support Staff

September 13, 2017 at 10:50 am

I did mention this earlier in the topic, but it bears repeating:

That information is actually included in the CSV report. Specifically in the Ticket Name and the [REG_final_price] columns. Can you check to see if those columns are included in your reports? If they are not included, maybe there was a customization made that removes them?

Now that we seen your customization code posted, it’s evident that you did indeed remove those two items with your customizations. So the way forward with getting those two items added back is you’ll add the following to your custom array:

'Ticket Name',
'Registration\'s share of the transaction total[REG_final_price]',
  • This reply was modified 7 years ago by Josh. Reason: code formatting


Elizabeth

September 13, 2017 at 4:34 pm

Thanks but it looks like this got messed up above:

‘Registration's


Josh

  • Support Staff

September 14, 2017 at 7:23 am

Hi Dorian,

&#039; is actually the html entity for the single quote (') character.

See also:

http://www.amp-what.com/unicode/search/quote


Elizabeth

September 14, 2017 at 2:00 pm

Thanks! The code above worked!

Viewing 28 reply threads

The support post ‘EE4 Export’ 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