
Hi Ashan,
Thanks for the help.
The above code is in the functions.php of my child theme:
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;padding-bottom:10px;’ />n”;
if( !empty( $_this_ticket[‘oD’][‘naam_chauffeur’] )){
$array[‘naam_chauffeur’] = array(
//’label’=> evo_lang(‘Naam chauffeur’),
‘value’=> “<table><tr><td>” . $_this_ticket[‘oD’][‘naam_chauffeur’] . “</td></tr></table>”
);
}
if( !empty( $_this_ticket[‘oD’][‘adres_chauffeur’] )){
$array[‘adres_chauffeur’] = array(
//’label’=> evo_lang(‘Adres chauffeur (straat + nr)’),
‘value’=>”<table><tr><td>” . $_this_ticket[‘oD’][‘adres_chauffeur’] . “</td></tr></table>”
);
}
if( !empty( $_this_ticket[‘oD’][‘adres_chauffeur_postcode’] )){
$array[‘adres_chauffeur_postcode’] = array(
//’label’=> evo_lang(‘Adres chauffeur (postcode + gemeente)’),
‘value’=>”<table><tr><td>” . $_this_ticket[‘oD’][‘adres_chauffeur_postcode’] . “</td></tr></table>”
);
}
if( !empty( $_this_ticket[‘oD’][‘rijksregister_chauffeur’] )){
$array[‘rijksregister_chauffeur’] = array(
//’label’=> evo_lang(‘Rijksregister’),
‘value’=> “<table><tr><td>” . $_this_ticket[‘oD’][‘rijksregister_chauffeur’] . “</td></tr></table>”
);
}
if( !empty( $_this_ticket[‘oD’][‘gsm_chauffeur’] )){
$array[‘gsm_chauffeur’] = array(
//’label’=> evo_lang(‘Gsm’),
‘value’=> “<table><tr><td>” . $_this_ticket[‘oD’][‘gsm_chauffeur’] . “</td></tr></table>”
);
}
if( !empty( $_this_ticket[‘oD’][’email_chauffeur’] )){
$array[’email_chauffeur’] = array(
//’label’=> evo_lang(‘E-mail’),
‘value’=> “<table><tr><td>” . $_this_ticket[‘oD’][’email_chauffeur’] . “</td></tr></table>”
);
}
if( !empty( $_this_ticket[‘oD’][‘geboorteplaats_chauffeur’] )){
$array[‘geboorteplaats_chauffeur’] = array(
//’label’=> evo_lang(‘Geboorteplaats’),
‘value’=> “<table><tr><td>” . $_this_ticket[‘oD’][‘geboorteplaats_chauffeur’] . “</td></tr></table>”
);
}
if( !empty( $_this_ticket[‘oD’][‘nationaliteit_chauffeur’] )){
$array[‘nationaliteit_chauffeur’] = array(
//’label’=> evo_lang(‘Nationaliteit’),
‘value’=> “<table><tr><td>” . $_this_ticket[‘oD’][‘nationaliteit_chauffeur’] . “</td></tr></table>”
);
}
if (!empty($_this_ticket[‘oD’][‘address_waar’])) {
$array[‘address_waar’] = array(
// ‘label’ => evo_lang(‘Adres waar de opleiding start’),
‘value’ => nl2br(“<table width=’100%’ cellpadding=’0′ cellspacing=’0′ border=’0′>
<tr>
<td style=’padding: 10px; font-size: 14px; line-height: 1.5; mso-line-height-rule: exactly;’>
” . htmlspecialchars($_this_ticket[‘oD’][‘address_waar’]) . “
</td>
</tr>
</table>”)
);
}
if (!empty($_this_ticket[‘oD’][‘opmerking’])) {
$array[‘opmerking’] = array(
// ‘label’ => evo_lang(‘Opmerking’),
‘value’ => nl2br(“<table width=’100%’ cellpadding=’0′ cellspacing=’0′ border=’0′>
<tr>
<td style=’padding: 10px; font-size: 14px; line-height: 1.5; mso-line-height-rule: exactly;’>
” . htmlspecialchars($_this_ticket[‘oD’][‘opmerking’]) . “
</td>
</tr>
</table>”)
);
}
The other changes are in wp-content/themes/Lilo_child/eventon/templates/email/tickets/ticket_confirmation_email.php:
// print out the extra data
if( is_array( $extra_data ) && count( $extra_data )> 0 ):
foreach($extra_data as $key => $data){
if( !isset( $data[‘label’] )) continue;
if( !isset( $data[‘value’] )) continue;
$label = esc_attr( $data[‘label’] );
$value = esc_attr( $data[‘value’] );
?>
<tr>
<td colspan=’2′ style=’padding:8px 20px’>
<p style=”<?php echo $styles[‘007’];?>; text-transform:none;”><?php echo $value;?></p>
****
</td>
</tr>
(**** deleted: <p style=”<?php echo $styles[‘004’].$styles[‘pt5’];?>”><?php echo $label;?></p> )
Yet the mail is still with a label.