Reply to: tickets(368887)

Hello,

I am sorry, the access information you have provided did not work for us. Please check them and post the correct login information as a private message, thank you!

Reply to: tickets(368810)

They will buy from eventbrite.

People should register via the RSVP form. The link to eventbrite should be in the confirmation email. Because the event is repeating the link is dependend from the date of the event.

I found yesterday the addon Repeat Customizer. Maybe this can be already a solution. I thought that I maybe use one of the custom meta fields and build this inside the confirmation email. What do you think about this idea?

Reply to: tickets(368807)

Hello,

avarus-berlin.de/wartungsklappe

Username: avarusberlin_fp696pp0

PW: r0fYe$aPyfFD$Wzr7WkkW)c*

Reply to: tickets(368888)

And i can add more events in coming soon here? Appears just one. And i cant hide using shortcode, is buggy

[add_eventon_now]

https://2025.paving.com.br/proximos-eventos/

Reply to: tickets(368403)

Its not published and the pages are all over the place. I can provide you the shortcodes I am using:

For the list where I WANT the title to show:

[add_eventon_list eventtop_style=”2″ eventtop_date_style=”2″ event_past_future=”future”
number_of_months=”2″
hide_month_headers=”yes”]

 

For the calendar where I DONT want to see the title:

[add_eventon ux_val=”3″ jumper=”yes” exp_jumper=”yes” jumper_offset=”2″ jumper_count=”3″ event_past_future=”future”
tiles=”yes”
tile_count=”20″ tile_height=”100″ tile_style=”3″ tile_bg=”1″ tile_bg_size=”med” hide_et_tl=”yes”]

 

The whole code from the dynamic style is:

.eventon_events_list .eventon_list_event .desc_trig, .evopop_top{background-color:#f1f1f1}.eventon_events_list .eventon_list_event .desc_trig:hover{background-color:#fbfbfb}.ajde_evcal_calendar .calendar_header p,
.eventon_events_list .eventon_list_event .evoet_cx span.evoet_dayblock span,
.evo_pop_body .evoet_cx span.evoet_dayblock span,
.ajde_evcal_calendar .evcal_evdata_row .evcal_evdata_cell h3.evo_h3,
.evo_lightbox_content h3.evo_h3, h2.evo_h2, h3.evo_h3,h4.evo_h4,
body .ajde_evcal_calendar h4.evo_h4,
.evo_content_in h4.evo_h4,
.evo_metarow_ICS .evcal_evdata_cell p a,
.eventon_events_list .eventon_list_event .evoet_cx span.evcal_desc2,
.eventon_list_event .evoet_cx span.evcal_event_title,
.evoet_cx span.evcal_desc2,
.evo_metarow_ICS .evcal_evdata_cell p a,
.evo_metarow_learnMICS .evcal_col50 .evcal_evdata_cell p a,
.eventon_list_event .evo_metarow_locImg p.evoLOCtxt .evo_loc_text_title,
.evo_clik_row .evo_h3,
.evotax_term_card .evotax_term_details h2,
.evotax_term_card h3.evotax_term_subtitle,
.ajde_evcal_calendar .evo_sort_btn,
.eventon_main_section  #evcal_cur,
.ajde_evcal_calendar .calendar_header p.evo_month_title,
.ajde_evcal_calendar .eventon_events_list .evcal_month_line p,
.eventon_events_list .eventon_list_event .evcal_cblock,
.ajde_evcal_calendar .evcal_month_line,
.eventon_event .event_excerpt_in h3,
.ajde_evcal_calendar .evo_footer_nav p.evo_month_title,
.evo_eventon_live_now_section h3,
.evo_tab_view .evo_tabs p.evo_tab,
.evo_metarow_virtual .evo_live_now_tag,
.evo_page_body .evo_sin_page .evosin_event_title{font-family:Optima}.ajde_evcal_calendar .eventon_events_list p,
.evo_lightbox p,
.eventon_events_list .eventon_list_event .evoet_cx span,
.evo_pop_body .evoet_cx span,
.eventon_events_list .eventon_list_event .evoet_cx span.evcal_event_subtitle,
.evo_pop_body .evoet_cx span.evcal_event_subtitle,
.ajde_evcal_calendar .eventon_list_event .event_description .evcal_btn,
.evo_pop_body .evcal_btn, .evcal_btn,
.eventon_events_list .eventon_list_event .cancel_event .evo_event_headers,
.evo_pop_body .evo_event_headers.canceled,
.eventon_events_list .eventon_list_event .evcal_list_a .evo_above_title span,
.evo_pop_body .evcal_list_a .evo_above_title span,
.evcal_evdata_row.evcal_event_details .evcal_evdata_cell p,
#evcal_list .eventon_list_event .evoInput, .evo_pop_body .evoInput,
.evcal_evdata_row .evcal_evdata_cell p,
#evcal_list .eventon_list_event p.no_events,
.ajde_evcal_calendar .eventon_events_list .eventon_desc_in ul,
.evoGuideCall em,
.evo_cal_above span,
.ajde_evcal_calendar .calendar_header .evo_j_dates .legend,
.eventon_sort_line p, .eventon_filter_line p,
.evcal_evdata_row{font-family:Optima}.ajde_evcal_calendar .evo_sort_btn, .eventon_sf_field p, .evo_srt_sel p.fa{color:#ffffff}.ajde_evcal_calendar .evo_sort_btn:hover{color:#ffffff}#evcal_list .eventon_list_event .evoet_cx em, .evo_lightboxes .evoet_cx em{color:#556363}#evcal_list .eventon_list_event .evoet_cx em a{color:#abadad}.eventon_events_list .eventon_list_event a,
.evocard_row .evo_metarow_organizer .evo_card_organizer_social a,
.evo_lightbox .evo_tax_social_media a{color:#00f2ff}
#evcal_list .eventon_list_event .event_description .evcal_btn,
#evcal_list .eventon_list_event .event_description .evcal_btn p,
body .evo_lightboxes .evo_lightbox_body.evo_pop_body .evcal_btn,
.ajde_evcal_calendar .eventon_list_event .event_description .evcal_btn,
.evo_lightbox .evcal_btn, body .evcal_btn,
.evo_lightbox.eventon_events_list .eventon_list_event a.evcal_btn,
.evcal_btn,.evo_btn_arr,.evo_btn_arr_circ{color:#ffffff;background:#00aafb;}#evcal_list .eventon_list_event .event_description .evcal_btn:hover,
body .evo_lightboxes .evo_lightbox_body.evo_pop_body .evcal_btn:hover,
.ajde_evcal_calendar .eventon_list_event .event_description .evcal_btn:hover,
.evo_pop_body .evcal_btn:hover, .evcal_btn:hover,.evcal_evdata_row.evo_clik_row:hover{color:#ffffff;background:#00acfb;}.evcal_evdata_row.evo_clik_row:hover > *, .evcal_evdata_row.evo_clik_row:hover i{color:#ffffff}.eventon_list_event .evo_btn_secondary,
.ajde_evcal_calendar .eventon_list_event .event_description .evcal_btn.evo_btn_secondary,
.evo_lightbox .evcal_btn.evo_btn_secondary,
body .evcal_btn.evo_btn_secondary,
#evcal_list .eventon_list_event .event_description .evcal_btn.evo_btn_secondary,
.evcal_btn.evo_btn_secondary,
.evo_btn_secondary{color:#ffffff;background:#d2d2d2;}.eventon_list_event .evo_btn_secondary:hover,
.ajde_evcal_calendar .eventon_list_event .event_description .evcal_btn.evo_btn_secondary:hover,
.evo_lightbox .evcal_btn.evo_btn_secondary:hover,
body .evcal_btn.evo_btn_secondary:hover,
#evcal_list .eventon_list_event .event_description .evcal_btn.evo_btn_secondary:hover,
.eventon_list_event .evo_btn_secondary:hover,
.evcal_btn.evo_btn_secondary:hover,
.evo_btn_secondary:hover{color:#ffffff;background:#bebebe;}.evocard_row .evcal_evdata_icons i, .evocard_row .evcal_evdata_custometa_icons i{color:#02c2cc;font-size:36px;}.evcal_evdata_row .evcal_evdata_cell h3, .evo_clik_row .evo_h3{font-size:20px}#evcal_list .eventon_list_event .evcal_cblock, .evo_lightboxes .evo_pop_body .evcal_cblock{color:#11c8d9}.evcal_evdata_row .evcal_evdata_cell h2, .evcal_evdata_row .evcal_evdata_cell h3, .evorow .evo_clik_row h3,
.evcal_evdata_row .evcal_evdata_cell h3 a{color:#ffffff}#evcal_list .eventon_list_event .evcal_eventcard p,
.ajde_evcal_calendar .eventon_events_list .eventon_desc_in ul,
.evo_lightboxes .evo_pop_body .evcal_evdata_row .evcal_evdata_cell p,
.evo_lightboxes .evcal_evdata_cell p a{color:#ffffff}.ajde_evcal_calendar #evcal_head.calendar_header #evcal_cur, .ajde_evcal_calendar .evcal_month_line p, .ajde_evcal_calendar .evo_footer_nav p.evo_month_title{color:#11c8d9}.eventon_events_list .eventon_list_event .event_description, .evo_lightbox.eventcard .evo_lightbox_body{background-color:#4b4e59}.evocard_box{background-color:#212430}.evcal_event_details .evcal_evdata_cell.shorter_desc .eventon_desc_in:after{background:linear-gradient(to top,#212430 20%, #21243000 80%)}.event_description .bordb, #evcal_list .bordb, .eventon_events_list .eventon_list_event .event_description, .bordr, #evcal_list,
#evcal_list p.desc_trig_outter,
.evopop_top,
.evo_pop_body .bordb{border-color:#d1dbe6}.eventon_events_list .eventon_list_event .evcal_list_a.featured_event{background-color:#fff6e2}.eventon_events_list .eventon_list_event .desc_trig:hover{border-left-width:15px}.eventon_events_list .eventon_list_event .evcal_list_a.featured_event:hover{background-color:#ffecc5}.eventon_events_list .eventon_list_event .evoet_cx span.evo_above_title span.featured, .evo_pop_body .evoet_cx span.evo_above_title span.featured,
.evosv_grid .evosv_tag.featured{color:#ffffff;background-color:#ffcb55;}.eventon_events_list .eventon_list_event .evoet_cx span.evo_above_title span.completed, .evo_pop_body .evoet_cx span.evo_above_title span.completed,
.evosv_grid .evosv_tag.completed{color:#ffffff;background-color:#585858;}.evoet_cx .evo_ep_bar b, .evoet_cx .evo_ep_bar b:before{background-color:#f79191}.evoet_cx .evo_ep_bar.evo_completed b{background-color:#9a9a9a}.ajde_evcal_calendar.color #evcal_list .eventon_list_event .evcal_cblock,
.ajde_evcal_calendar.color #evcal_list.eventon_events_list .eventon_list_event p .evoet_cx span.evcal_event_title,
.ajde_evcal_calendar.color #evcal_list .eventon_list_event .evoet_cx span.evcal_event_title,
.ajde_evcal_calendar.color #evcal_list .eventon_list_event .evoet_cx span.evcal_event_subtitle,
.ajde_evcal_calendar.color #evcal_list .eventon_list_event .evoet_cx em,
.ajde_evcal_calendar.color #evcal_list .eventon_list_event .evoet_cx .evcal_desc_info,
.ajde_evcal_calendar.color .eventon_events_list .eventon_list_event .evcal_cblock em.evo_day,
.ajde_evcal_calendar.color .evoet_cx span,
.ajde_evcal_calendar.color .evoet_cx .evo_below_title .status_reason,
.ajde_evcal_calendar.color .evoet_cx .evo_tz_time .evo_tz,
.ajde_evcal_calendar.color .evoet_cx .evo_mytime.tzo_trig i,
.ajde_evcal_calendar.color .evoet_cx .evo_mytime.tzo_trig b,
.ajde_evcal_calendar.color .evoet_cx em i,
.ajde_evcal_calendar.color .evoet_cx .evo_ep_pre,
.ajde_evcal_calendar.color .evoet_cx .evo_ep_time,
.ajde_evcal_calendar.color .evoet_cx .evo_mytime.tzo_trig:hover i,
.ajde_evcal_calendar.color .evoet_cx .evo_mytime.tzo_trig:hover b,
.evo_lightboxes .color.eventon_list_event .evcal_cblock,
.evo_lightboxes .color.eventon_list_event .evoet_cx span,
.evo_lightboxes .color.eventon_list_event .evoet_cx span.evcal_event_title,
.evo_lightboxes .color.eventon_list_event .evoet_cx span.evcal_event_subtitle,
.evo_lightboxes .color.eventon_list_event .evoet_cx em,
.evo_lightboxes .color.eventon_list_event .evoet_cx .evcal_desc_info,
.evo_lightboxes .color.eventon_list_event .evcal_cblock em.evo_day,
.evo_lightboxes .color.eventon_list_event .evoet_cx .evo_tz_time > *,
.evo_lightboxes .color.eventon_list_event .evoet_cx .evo_mytime.tzo_trig i,
.evo_lightboxes .color.eventon_list_event .evoet_cx .evo_mytime.tzo_trig b{color:#ffffff}.event_description .evcal_close{background-color:#f7f7f7}.event_description .evcal_close:hover{background-color:#f1f1f1}.evo_lightboxes .evopopclose, .evo_lightboxes .evolbclose{background-color:#000000}.evo_lightboxes .evopopclose:hover, .evo_lightboxes .evolbclose:hover{background-color:#cfcfcf}.evo_lightboxes .evolbclose:before, .evo_lightboxes .evolbclose:after{background-color:#666666}.evo_lightboxes .evolbclose:hover:before, .evo_lightboxes .evolbclose:hover:after{background-color:#666666}#evcal_list .evorow.getdirections, .evo_pop_body .evorow.getdirections{background-color:#ffffff}#evcal_list .evorow.getdirections .evoInput, .evo_pop_body .evorow.getdirections .evoInput{color:#888888}.ajde_evcal_calendar #evcal_list.eventon_events_list .eventon_list_event p .evoet_cx span.evcal_event_title{color:#556363}.eventon_events_list .eventon_list_event .evoet_cx span.evcal_event_subtitle,
.evo_lightboxes .evo_pop_body .evoet_cx span.evcal_event_subtitle{color:#797a7a}.fp_popup_option i{color:#999;font-size:22px;}.evo_cal_above span{color:#556363;background-color:#ffffff;}.evo_cal_above span.evo-gototoday-btn{color:#ffffff;background-color:#9e9b9e;}.evo_cal_above span.evo-gototoday-btn:hover{color:#ffffff;background-color:#abadad;}.ajde_evcal_calendar .calendar_header .evo_j_dates .legend a{color:#a0a09f;background-color:#f5f5f5;}.ajde_evcal_calendar .calendar_header .evo_j_dates .legend a.current{color:#ffffff;background-color:#27d12d;}.ajde_evcal_calendar .calendar_header .evo_j_dates .legend a.set{color:#ffffff;background-color:#d43131;}.ajde_evcal_calendar .calendar_header .evcal_arrows, .evo_footer_nav .evcal_arrows{border-color:#a0a09f;background-color:#ffffff;}.ajde_evcal_calendar .calendar_header .evcal_arrows:hover, .evo_footer_nav .evcal_arrows:hover{background-color:#11c8d9;}.ajde_evcal_calendar .calendar_header .evcal_arrows:before,.evo_footer_nav .evcal_arrows:before{border-color:#11c8d9}.ajde_evcal_calendar .calendar_header .evcal_arrows.evcal_btn_next:hover:before,.ajde_evcal_calendar .calendar_header .evcal_arrows.evcal_btn_prev:hover:before,.evo_footer_nav .evcal_arrows.evcal_btn_prev:hover:before,.evo_footer_nav .evcal_arrows.evcal_btn_next:hover:before{border-color:#ffffff}.eventon_events_list .eventon_list_event .evoet_cx span.evo_above_title span, .evo_pop_body .evoet_cx span.evo_above_title span{color:#ffffff;background-color:#F79191;}.eventon_events_list .eventon_list_event .evoet_cx span.evo_above_title span.canceled, .evo_pop_body .evoet_cx span.evo_above_title span.canceled{color:#ffffff;background-color:#F79191;}.eventon_events_list .eventon_list_event .evoet_cx span.evo_above_title span.vir,, .evo_pop_body .evoet_cx span.evo_above_title span.vir,
.evosv_grid .evosv_tag.vir{color:#ffffff;background-color:#5bdaf7;}.eventon_events_list .eventon_list_event .evoet_cx span.evo_above_title span.postponed, .evo_pop_body .evoet_cx span.evo_above_title span.postponed,
.evosv_grid .evosv_tag.postponed{color:#ffffff;background-color:#e3784b;}.eventon_events_list .eventon_list_event .evoet_cx span.evo_above_title span.movedonline, .evo_pop_body .evoet_cx span.evo_above_title span.movedonline,
.evosv_grid .evosv_tag.movedonline{color:#ffffff;background-color:#6edccd;}.eventon_events_list .eventon_list_event .evoet_cx span.evo_above_title span.rescheduled, .evo_pop_body .evoet_cx span.evo_above_title span.rescheduled,
.evosv_grid .evosv_tag.rescheduled{color:#ffffff;background-color:#67ef78;}.ajde_evcal_calendar #evcal_list.eventon_events_list .eventon_list_event .cancel_event.evcal_list_a, .evo_lightbox_body.eventon_list_event.cancel_event .evopop_top{background-color:#464646}.eventon_events_list .eventon_list_event .cancel_event.evcal_list_a:before{color:#464646}#eventon_loadbar{background-color:#efefef}#eventon_loadbar:before{background-color:#f5b87a}.evoet_cx .evcal_desc3 em.evocmd_button, #evcal_list .evoet_cx .evcal_desc3 em.evocmd_button{color:#ffffff;background-color:#237dbd;}.evo_metarow_socialmedia a.evo_ss:hover{background-color:#02c2cc;}.evo_metarow_socialmedia a.evo_ss i{color:#ffffff;}.evo_metarow_socialmedia a.evo_ss:hover i{color:#ffffff;}.evo_metarow_socialmedia .evo_sm{border-color:#cdcdcd}.eventon_events_list .evoShow_more_events span{background-color:#b4b4b4;color:#ffffff;}.evo_card_health_boxes .evo_health_b{background-color:#ececec;color:#ffffff;}.evo_card_health_boxes .evo_health_b svg, .evo_card_health_boxes .evo_health_b i.fa{fill:#8d8d8d;color:#8d8d8d;}.evo_health_b.ehb_other{border-color:#e8e8e8}.eventon_list_event .evoet_cx em.evo_mytime.tzo_trig i
{color:#2eb4dc}.eventon_list_event .evoet_cx em.evo_mytime,
.eventon_list_event .evoet_cx em.evo_mytime.tzo_trig:hover,
.eventon_list_event .evoet_cx em.evo_mytime,
.eventon_list_event .evcal_evdata_cell .evo_mytime,
.eventon_list_event .evcal_evdata_cell .evo_mytime.tzo_trig{background-color:#2eb4dc}.eventon_list_event .evoet_cx em.evo_mytime >*,
.eventon_list_event .evcal_evdata_cell .evo_mytime >*,
.eventon_list_event .evoet_cx em.evo_mytime.tzo_trig:hover >*{color:#ffffff}.eventon_events_list .evose_repeat_header span.title{background-color:#fed584;color:#202124;}.eventon_events_list .evose_repeat_header .ri_nav a,
.eventon_events_list .evose_repeat_header .ri_nav a:visited,
.eventon_events_list .evose_repeat_header .ri_nav a:hover{color:#656565}.eventon_events_list .evose_repeat_header .ri_nav b{border-color:#656565}body .EVOSR_section a.evo_do_search, body a.evosr_search_btn, .evo_search_bar_in a.evosr_search_btn{color:#3d3d3d}body .EVOSR_section a.evo_do_search:hover, body a.evosr_search_btn:hover, .evo_search_bar_in a.evosr_search_btn:hover{color:#bbbbbb}body .EVOSR_section input[type=text], .evo_search_bar input[type=text]{border-color:#EDEDED;background-color:#F2F2F2;}.evosr_blur{background-color:#f9d789;color:#14141E;}.evo_search_results_count span{background-color:#202124;color:#ffffff;}body .EVOSR_section input[type=text]:hover, .evo_search_bar input[type=text]:hover{border-color:#c5c5c5}.evo_search_results_count{color:#14141E}.evo_eventon_live_now_section h3{color:#202124}.evo_eventon_live_now_section .evo_eventon_now_next{background-color:#ececec}.evo_eventon_live_now_section .evo_eventon_now_next h3{color:#202124}.evo_eventon_live_now_section .evo_eventon_now_next h3 .evo_countdowner{background-color:#a5a5a5;color:#ffffff;}.evo_eventon_live_now_section p.evo_eventon_no_events_now{background-color:#d6f5d2;color:#888888;}.ajde_evcal_calendar.esty_1 #evcal_list .eventon_list_event.no_events p.no_events,   .ajde_evcal_calendar.esty_2 #evcal_list .eventon_list_event.no_events p.no_events, .ajde_evcal_calendar.esty_3 #evcal_list .eventon_list_event.no_events p.no_events{background-color:#ffffff}.ajde_evcal_calendar.esty_1 #evcal_list .eventon_list_event.no_events p.no_events, .ajde_evcal_calendar.esty_2 #evcal_list .eventon_list_event.no_events p.no_events,.ajde_evcal_calendar.esty_3 #evcal_list .eventon_list_event.no_events p.no_events, .ajde_evcal_calendar.esty_1 #evcal_list .eventon_list_event.no_events p.no_events a, .ajde_evcal_calendar.esty_2 #evcal_list .eventon_list_event.no_events p.no_events a, .ajde_evcal_calendar.esty_3 #evcal_list .eventon_list_event.no_events p.no_events a{color:#202124}.ajde_evcal_calendar.esty_0 #evcal_list .eventon_list_event.no_events p.no_events,   .ajde_evcal_calendar.esty_4 #evcal_list .eventon_list_event.no_events p.no_events{background-color:#ffffff}.ajde_evcal_calendar.esty_0 #evcal_list .eventon_list_event.no_events p.no_events, .ajde_evcal_calendar.esty_4 #evcal_list .eventon_list_event.no_events p.no_events,.ajde_evcal_calendar.esty_0 #evcal_list .eventon_list_event.no_events p.no_events a,.ajde_evcal_calendar.esty_4 #evcal_list .eventon_list_event.no_events p.no_events a{color:#202124}

Reply to: tickets(368880)

code:

 

/* —————————————————————————

* Add tickets checkout fields: rijksregister, privé adres, geboorteplaats, nationaliteit,

*

*

* ————————————————————————— */

/*

add_filter(‘evotx_checkout_additional_fields_settings’,’evotx_2′,10,1);

function evotx_2($fields){

$fields[‘rijksregisternummer’] = __(‘Rijksregisternummer’,’evotx’);

$fields[‘gsmnummer’] = __(‘Gsm-nummer’,’evotx’);

$fields[‘mailadres’] = __(‘E-mailadres chauffeur’,’evotx’);

$fields[‘priveadres’] = __(‘PrivĂ©-adres’,’evotx’);

$fields[‘geboorteplaats’] = __(‘Geboorteplaats’,’evotx’);

$fields[‘nationaliteit’] = __(‘Nationaliteit’,’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[‘rijksregisternummer’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Rijksregisternummer’),

‘required’=> true,

);

$fields[‘mailadres’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘E-mailadres chauffeur’),

‘required’=> true,

);

$fields[‘gsmnummer’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Gsm-nummer’),

‘required’=> true,

);

$fields[‘priveadres’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘PrivĂ©-adres’),

‘required’=> true,

);

$fields[‘geboorteplaats’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Geboorteplaats’),

‘required’=> true,

);

$fields[‘nationaliteit’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Nationaliteit’),

‘required’=> true,

);

// 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[‘rijksregisternummer’])) return $arr;

$arr[‘oD’][‘rijksregisternummer’] = $_th[‘rijksregisternummer’];

if(!isset($_th[‘gsmnummer’])) return $arr;

$arr[‘oD’][‘gsmnummer’] = $_th[‘gsmnummer’];

if(!isset($_th[‘mailadres’])) return $arr;

$arr[‘oD’][‘mailadres’] = $_th[‘mailadres’];

if(!isset($_th[‘priveadres’])) return $arr;

$arr[‘oD’][‘priveadres’] = $_th[‘priveadres’];

if(!isset($_th[‘geboorteplaats’])) return $arr;

$arr[‘oD’][‘geboorteplaats’] = $_th[‘geboorteplaats’];

if(!isset($_th[‘nationaliteit’])) return $arr;

$arr[‘oD’][‘nationaliteit’] = $_th[‘nationaliteit’];

// the above 2 lines can be used for all other new fields

 

return $arr;

}

*/

add_filter(‘evotx_additional_ticket_info_fields’, ‘evotx_1’, 10,1);

function evotx_1($fields){

// Get the cart object

$cart = WC()->cart->get_cart();

// Loop through the cart items

foreach ( $cart as $cart_item_key => $cart_item ) {

// Get the product ID from the cart item

$product_id = $cart_item[‘product_id’];

}

//get event id from product

$event_id = get_post_meta( $product_id, ‘_eventid’, true );

//get organizer id from event id

$organizer_terms = wp_get_post_terms($event_id, ‘event_organizer’);

if( $organizer_terms && ! is_wp_error( $organizer_terms ) ){

if(isset($organizer_terms[0]->term_id) && $organizer_terms[0]->term_id != “”){

$organizer_term_id =  $organizer_terms[0]->term_id;

$organizer_id = $organizer_term_id;

}

}

//print_r($organizer_terms); die;

if( !empty($organizer_id) && ($organizer_id == 60 || $organizer_id == 80 || $organizer_id == 59 || $organizer_id == 101 )){

/* $fields[‘name_requestor’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Naam aanvrager’),

‘required’=> true,

);

$fields[’email_requestor’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘E-mail aanvrager’),

‘required’=> true,

);

$fields[‘name_company’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Naam onderneming’),

‘required’=> false,

);

$fields[‘company_address’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Adres ‘),

‘required’=> false,

);

$fields[‘company_phone’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Telefoon’),

‘required’=> false,

);

$fields[‘company_email’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘E-mail’),

‘required’=> false,

);

$fields[‘company_registration_number’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Btw-nummer’),

‘required’=> false,

); */

$fields[‘naam_chauffeur’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Naam chauffeur’),

‘required’=> true,

);

}

if($organizer_id == 59 || $organizer_id == 101 ){

$fields[‘adres_chauffeur’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Adres chauffeur’),

‘required’=> true,

);

$fields[‘rijksregister_chauffeur’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Rijksregister’),

‘required’=> true,

);

$fields[‘gsm_chauffeur’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Gsm’),

‘required’=> true,

);

$fields[’email_chauffeur’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘E-mail’),

‘required’=> true,

);

$fields[‘geboorteplaats_chauffeur’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Geboorteplaats’),

‘required’=> true,

);

$fields[‘nationaliteit_chauffeur’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Nationaliteit’),

‘required’=> true,

);

}

if($organizer_id == 101 ){

$fields[‘address_waar’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Adres waar de opleiding start’),

‘required’=> true,

);

$fields[‘opmerking’] = array(

‘type’=>’text’,

‘label’=> evo_lang(‘Opmerking’),

‘required’=> true,

);

}

// 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[‘name_requestor’])){

$arr[‘oD’][‘name_requestor’] = $_th[‘name_requestor’];

}

if(isset($_th[’email_requestor’])){

$arr[‘oD’][’email_requestor’] = $_th[’email_requestor’];

}

if(isset($_th[‘name_company’])){

$arr[‘oD’][‘name_company’] = $_th[‘name_company’];

}

if(isset($_th[‘company_address’])){

$arr[‘oD’][‘company_address’] = $_th[‘company_address’];

}

if(isset($_th[‘company_phone’])){

$arr[‘oD’][‘company_phone’] = $_th[‘company_phone’];

}

if(isset($_th[‘company_email’])){

$arr[‘oD’][‘company_email’] = $_th[‘company_email’];

}

if(isset($_th[‘company_registration_number’])){

$arr[‘oD’][‘company_registration_number’] = $_th[‘company_registration_number’];

} */

if(isset($_th[‘naam_chauffeur’])){

$arr[‘oD’][‘naam_chauffeur’] = $_th[‘naam_chauffeur’];

}

if(isset($_th[‘adres_chauffeur’])){

$arr[‘oD’][‘adres_chauffeur’] = $_th[‘adres_chauffeur’];

}

if(isset($_th[‘rijksregister_chauffeur’])){

$arr[‘oD’][‘rijksregister_chauffeur’] = $_th[‘rijksregister_chauffeur’];

}

if(isset($_th[‘gsm_chauffeur’])){

$arr[‘oD’][‘gsm_chauffeur’] = $_th[‘gsm_chauffeur’];

}

if(isset($_th[’email_chauffeur’])){

$arr[‘oD’][’email_chauffeur’] = $_th[’email_chauffeur’];

}

if(isset($_th[‘geboorteplaats_chauffeur’])){

$arr[‘oD’][‘geboorteplaats_chauffeur’] = $_th[‘geboorteplaats_chauffeur’];

}

if(isset($_th[‘nationaliteit_chauffeur’])){

$arr[‘oD’][‘nationaliteit_chauffeur’] = $_th[‘nationaliteit_chauffeur’];

}

if(isset($_th[‘address_waar’])){

$arr[‘oD’][‘address_waar’] = $_th[‘address_waar’];

}

if(isset($_th[‘opmerking’])){

$arr[‘oD’][‘opmerking’] = $_th[‘opmerking’];

}

return $arr;

}

add_filter(‘evotx_confirmation_email_additional_data_array’,’evotx_4′, 10, 4);

function evotx_4(  $array, $_this_ticket , $TIX_CPT, $EVENT ){

$line_break = “<br style=’mso-line-height-rule: exactly;’ />n”;

/* if( !empty( $_this_ticket[‘oD’][‘name_requestor’] )){

$array[‘name_requestor’] = array(

‘label’=> evo_lang(‘Naam aanvrager’),

‘value’=> $_this_ticket[‘oD’][‘name_requestor’]

);

}

if( !empty( $_this_ticket[‘oD’][’email_requestor’] )){

$array[’email_requestor’] = array(

‘label’=> evo_lang(‘E-mail aanvrager’),

‘value’=> $_this_ticket[‘oD’][’email_requestor’]

);

}

if( !empty( $_this_ticket[‘oD’][‘name_company’] )){

$array[‘name_company’] = array(

‘label’=> evo_lang(‘Naam onderneming’),

‘value’=> $_this_ticket[‘oD’][‘name_company’]

);

}

if( !empty( $_this_ticket[‘oD’][‘company_address’] )){

$array[‘company_address’] = array(

‘label’=> evo_lang(‘Adres’),

‘value’=> $_this_ticket[‘oD’][‘company_address’]

);

}

if( !empty( $_this_ticket[‘oD’][‘company_phone’] )){

$array[‘company_phone’] = array(

‘label’=> evo_lang(‘Telefoon’),

‘value’=> $_this_ticket[‘oD’][‘company_phone’]

);

}

if( !empty( $_this_ticket[‘oD’][‘company_email’] )){

$array[‘company_email’] = array(

‘label’=> evo_lang(‘E-mail’),

‘value’=> $_this_ticket[‘oD’][‘company_email’]

);

}

if( !empty( $_this_ticket[‘oD’][‘company_registration_number’] )){

$array[‘company_registration_number’] = array(

‘label’=> evo_lang(‘Btw-nummer ‘),

‘value’=> $_this_ticket[‘oD’][‘company_registration_number’]

);

} */

if( !empty( $_this_ticket[‘oD’][‘naam_chauffeur’] )){

$array[‘naam_chauffeur’] = array(

‘label’=> evo_lang(‘Naam chauffeur’),

‘value’=> $_this_ticket[‘oD’][‘naam_chauffeur’] . $line_break

);

}

if( !empty( $_this_ticket[‘oD’][‘adres_chauffeur’] )){

$array[‘adres_chauffeur’] = array(

‘label’=> evo_lang(‘Adres chauffeur’),

‘value’=> $_this_ticket[‘oD’][‘adres_chauffeur’] . $line_break

);

}

if( !empty( $_this_ticket[‘oD’][‘rijksregister_chauffeur’] )){

$array[‘rijksregister_chauffeur’] = array(

‘label’=> evo_lang(‘Rijksregister’),

‘value’=> $_this_ticket[‘oD’][‘rijksregister_chauffeur’] . $line_break

);

}

if( !empty( $_this_ticket[‘oD’][‘gsm_chauffeur’] )){

$array[‘gsm_chauffeur’] = array(

‘label’=> evo_lang(‘Gsm’),

‘value’=> $_this_ticket[‘oD’][‘gsm_chauffeur’] . $line_break

);

}

if( !empty( $_this_ticket[‘oD’][’email_chauffeur’] )){

$array[’email_chauffeur’] = array(

‘label’=> evo_lang(‘E-mail’),

‘value’=> $_this_ticket[‘oD’][’email_chauffeur’] . $line_break

);

}

if( !empty( $_this_ticket[‘oD’][‘geboorteplaats_chauffeur’] )){

$array[‘geboorteplaats_chauffeur’] = array(

‘label’=> evo_lang(‘Geboorteplaats’),

‘value’=> $_this_ticket[‘oD’][‘geboorteplaats_chauffeur’] . $line_break

);

}

if( !empty( $_this_ticket[‘oD’][‘nationaliteit_chauffeur’] )){

$array[‘nationaliteit_chauffeur’] = array(

‘label’=> evo_lang(‘Nationaliteit’),

‘value’=> $_this_ticket[‘oD’][‘nationaliteit_chauffeur’] . $line_break

);

}

if( !empty( $_this_ticket[‘oD’][‘address_waar’] )){

$array[‘address_waar’] = array(

‘label’=> evo_lang(‘Adres waar de opleiding start’),

‘value’=> $_this_ticket[‘oD’][‘address_waar’] . $line_break

);

}

if( !empty( $_this_ticket[‘oD’][‘opmerking’] )){

$array[‘opmerking’] = array(

‘label’=> evo_lang(‘Opmerking’),

‘value’=> $_this_ticket[‘oD’][‘opmerking’] . $line_break

);

}

return $array;

}