Attendee Name & EMail Not Showing in Separate Columns on Attendee List

Home Forums Ticket Products Event Tickets Plus Attendee Name & EMail Not Showing in Separate Columns on Attendee List

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1089872
    Barb
    Participant

    Hi!

    I updated to Event Tickets, Event Tickets Plus, Events Calendar and Events Calendar Pro today. I have the Events Calendar: WooCommerce Tickets deactivated (but not deleted.)

    I have not updated any other plug-ins since I updated to 4.1

    When I went to look at my attendee list on-line (and to export the CSV file), I’m missing two column fields: Name & Email.

    On the event screen, these are now showing under Ticket type and look like this:

    TICKET TYPE
    Purchased by: Customer (customer email)

    When I go do an export to CSV, all that shows is the Ticket Type – the 2nd line (Purchaser/Email) doesn’t show.

    I need to export a list for my event by purchaser name and am not sure how to do this now.

    Help!

    #1090453
    Barry
    Member

    Hi Barb,

    You’re not the first customer to hit up against this recent change and we’re sorry for the inconvenience. Perhaps this would help as an interim solution:


    /**
    * Adds email and name columns to the attendee export data (CSV only).
    *
    * Filters via the tribe_events_tickets_attendees_csv_items hook; intended for use
    * with the initial 4.1 release of Event Tickets only.
    *
    * @param array $items
    * @return array
    */
    function attendee_export_add_purchaser_email_name( $items ) {
    $count = 0;

    foreach ( $items as &$attendee_record ) {
    // Add the header columns
    if ( 1 === ++$count ) {
    $attendee_record[] = 'Customer Email Address';
    $attendee_record[] = 'Customer Name';
    }
    // Populate the new column in each subsequent row
    else {
    // Assumes that the order ID lives in the first column
    $order = wc_get_order( (int) $attendee_record[0] );
    $attendee_record[] = $order->billing_email;
    $attendee_record[] = $order->billing_first_name . ' ' . $order->billing_last_name;
    }
    }

    return $items;
    }

    add_filter( 'tribe_events_tickets_attendees_csv_items', 'attendee_export_add_purchaser_email_name' );

    This could be added to a custom plugin file, for example, or else to your theme’s functions.php file if you are familiar and happy with that approach.

    Does that work for you (until we can make a more substantive change in a future release)?

    #1096662
    Geoff
    Member

    Hey Barb,

    Just wanted to follow up and let you know that we released version 4.1.1 last night and it included a fix for this issue. Please update to the latest version if you haven’t already and do let us know if you continue to see any issues from there. 🙂

    Cheers and thanks for your patience while we worked on this!

    Geoff

    #1103082
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Attendee Name & EMail Not Showing in Separate Columns on Attendee List’ is closed to new replies.