Hi there,
Your solution did work as a work-around for this particular scenario. However, I am still experiencing issues as the client has since added even more meta fields, and edit the old ones again.
The problem is that the get_meta_fields_by_event( $event_id ) function in /src/Tribe/Meta.php is looking for all CURRENT meta fields set for the ticket.
However, the problem is that it can’t nab old meta fields.
So…. the export works fine for those purchases that match the current meta fields exactly, but doesn’t work if a previous purchase was made when there were different meta fields attached to the ticket.
Is there a function that could cycle through all past purchases of a ticket_id and grab all the meta_fields that were filled out at the time of purchase, and then insert them as columns in the export? Even if that means there will be multiple columns within the export… (for example, two “badge name” columns… with different names)
Thoughts?