/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

add_filter('evotx_checkout_additional_fields_settings','evotx_2',10,1);
function evotx_2($fields){
	$fields['business'] = __('Business Name','evotx');
	// you can add other fields like this similarly
	return $fields;
}

	
add_filter('evotx_additional_ticket_info_fields', 'evotx_1', 10,1);
function evotx_1($fields){
	// additonal field code block
	$fields['business'] = array(
		'type'=>'text',
		'label'=> evo_lang('Business Name'),
		'required'=> false,
	);
	// you can use same code block for more fields
	return $fields;
}

	
add_filter('evotx_get_attendees_for_event', 'evotx_3',10, 3);
function evotx_3($arr, $event_id, $_th){
 
	if(!isset($_th['business'])) return $arr;
	$arr['oD']['business'] = $_th['business'];
 
	// the above 2 lines can be used for all other new fields
 
	return $arr;
}