Posted: September 22, 2016 at 5:15 am
|
Hi! I know that the custom export is still on the go. I would like to know where are the files involved in the csv export or a bit of advise to achieve hidding fields on the csv exported file. |
Hi Guillermo, It sounds like you want to exclude specific fields from the CSV (or only include specific fields within the CSV) is that correct? If so we filters in place that allow you to do that. This function only allows the columns you specify to be added to the CSV: The function allows you to set which columns to exclude and all others will continue to be used: You can use either of those to do the above, you just need to add your columsn adn then add the function to either your functions.php file or a Site Specific Plugin. |
|
|
Thank you! It works 🙂 |
Hi there, We don’t currently have the option to change the separator used in the CSV, however we do have a filter that allows you to tell whichever program you are using which seaprator was used for the file:
|
|
|
Thank you! |
|
Hi Tony! Here is my function over functions.php on my theme: function ee_csv_comma_seperator( $initial_csv_output ) { Is there a filter / action list of events espresso somewhere? |
Ah, my apologies, I completely forgot about those filters!
Not currently however all of our hooks are prefxied with FHEE (Filter Hook Event Espresso) and AHEE (Action Hook Event Espresso) so they should be easy to find. FOr more info on the naming convention we use for hook see here:
All of the headers within the CSV should be translatable so you can use the function here: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function
It is, you would use the same filter from here: https://eventespresso.com/topic/export-registration-custom-fields/#post-217902 Whatever order you return the details from the filter is the order in which they will be output. |
|
|
Hi! Thank you for the fast replies 😉 I have tried this code to alter the CSV columns order, but the column fields doesn’t order correctly (First should be: ‘Nombre de pila’ and after ‘Transaction ID’. But it appears the Transaction ID as first column) Can you have a look at it? It seems that the order I use in the array doesn’t affect the CSV order.
|
I’m sorry, I should have been clearer as that isn’t what I meant above. Changing the order in the array you have currently will not change anything within the output as its just a list for array_intersect_key() to know which fields to return. Meaning $filtered_csv_row is still in the same order regardless of what order you us prior to that. You use the same filter, but will need to modify the function to return a custom order, take a look here: |
|
|
Thank you Tony! It works perfectly! Just what we need 🙂 |
You might be interested in this stack exchange thread that answers your question: |
|
|
Thank you! |
That’s actually a feature the dev team will need to add before you can do that. We’ll update this thread once that’s been added so you’ll know when it’s ready. |
|
Hi there, I wanted to let you know that a new “Filtered CSV Report” button was added to Event Espresso version 4.9.24.p. This new button will start a report that uses the filters on the admin registration list table. You can use this new feature to do a filtered report such as registrations that have a specific Registration status. |
|
The support post ‘Export registration custom fields’ 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.