Posted: July 24, 2016 at 7:02 pm
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. |
|
Hi Dorian, You can use the function available here: You set only the columns you want to display within the CSV (use the name of the column at the top of the CSV for each line, currently it does First Name, Last Name, Email and a custom question called radio as an example), all others will be excluded. Place that function within either your child themes functions.php file or a Custom Functions Plugin |
|
How do I find out what the email address and promotions value is? |
|
Where is the file in EE4? |
|
The values to add to the above function to include them within the CSV? You look within the CSV and find the column name. For example, the function I linked you to includes the First Name by setting the column name shown here – http://take.ms/TkroS You add each column name you want to include within that function above. Promotions would be ‘Transaction Promotions’.
Which file? The CSV’s are built dynamically from the details from the database so you don’t see a list of columns within any EE file. |
|
|
Thanks! I understand now 🙂 |
|
Looking at the CSV I see where: Last Name[ATT_lname] has [ATT_lname] but Transaction Status does not have anything like that. So below, how would I add Transaction Status: <?php |
It’s the whole column name, so the Last Name column uses:
The transaction status column name is just So I you would add that to the list: array_flip( array( __( 'First Name[ATT_fname]', 'event_espresso' ), __( 'Last Name[ATT_lname]', 'event_espresso' ), __( 'Email Address[ATT_email]', 'event_espresso' ), 'Transaction Status', ) ) ); If you run your site in a different language you’ll want to wrap the fields within the __() function, like so: __( 'Transaction Status', 'event_espresso' ) |
|
|
We just us US |
|
So the brackets do really mean anything? I assumed they pointed to the database value. |
__() is a translation function. It takes a string to translate and a text domain used within the function to determine where the transactions comes from. Take a look here: |
|
Oh you mean the Square brackets? They show the DB column name for some values. You just need the full column names (whatever they may be within the CSV your viewing) within the function above. |
|
The support post ‘Event Registration Export to Excel – EE4’ 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.