Hi Norisknofun,
First of all, I apologize for the delay in getting back to you on this.
Here’s a filter that can show the service type,date & time in the invoice order info. Add this code snippet in functions.php file of your currently active theme.
/**
* Add this code snippet in functions.php file of your currently active theme.
* Adding service type,date & time in the Order info section.
*/
function set_custom_order_fields( $fields, $order ) {
$new_fields = array();
if( get_post_meta( $order->id, '_wfs_service_type', true ) ) {
$new_fields['_wfs_service_type'] = array(
'label' => 'Service Type:',
'value' => get_post_meta( $order->id, '_wfs_service_type', true )
);
}
if( get_post_meta( $order->id, '_wfs_service_date', true ) ) {
$new_fields['_wfs_service_date'] = array(
'label' => 'Date:',
'value' => get_post_meta( $order->id, '_wfs_service_date', true )
);
}
if( get_post_meta( $order->id, '_wfs_service_time', true ) ) {
$new_fields['_wfs_service_time'] = array(
'label' => 'Time:',
'value' => get_post_meta( $order->id, '_wfs_service_time', true )
);
}
return array_merge( $fields, $new_fields );
}
add_filter( 'wcdn_order_info_fields', 'set_custom_order_fields', 10, 2 );
Screenshot for your reference: https://prnt.sc/dHNPIgQd8dzE
Regards,
Nikhil.