Customized CSV export

Home Forums Calendar Products Events Calendar PRO Customized CSV export

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1004774
    Daniel
    Participant

    Hello,

    I’d like to suggest a small enhancement to the class Tribe__Events__Tickets__Tickets_Pro in order to customize the CSV export for custom columns. It’s very easy to implement because the filters are already defined.

    Inside the the private class method _generate_filtered_attendees_list add:

    
    $columns = $this->attendees_table->get_columns();
    
    /*
    * HACK -> Start
    */
    $columns = apply_filters('manage_tribe_events_page_tickets-attendees_columns', $columns);
    
    /*
    * HACK -> End
    */
    

    .. and this:

    
    // Get the data
    $items = Tribe__Events__Tickets__Tickets::get_event_attendees( $event_id );
    
    /*
    * HACK -> Start
    */
    $items = array_map(function($item_array) use($export_columns, $columns) {
    
          return array_reduce($export_columns, function($carry, $column) use($item_array, $columns){
    
    		if(isset($item_array[$column])) {
    			$carry[$column] = $item_array[$column];
    		} else {
    			$carry[$column] = apply_filters('tribe_events_tickets_attendees_table_column', null, $item_array, $column);
    		}
    
    		return $carry;
    	}, array());
    
    }, $items);
    
    /*
    * HACK -> End
    */
    

    Can you add this feature to the next version of Events Calendar Pro?

    #1005031
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help out here.

    This is for the ticketing plugins such as WooCommerce Tickets correct?

    We are actually rewriting that entire system for the 4.0 release so I am not sure about including this as everything is changing.

    I believe it should be easier to add to the CSV Export. I will check in with the Developer who is working on this and see what he says.

    Thanks for the suggestion.

    #1009623
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Customized CSV export’ is closed to new replies.