I the cart i dynamically create some meta data for each item from a function located in functions.php.
IN CHECKOUT, I would like to save each meta data for each item of the current order.
In this way, once order completed, i would need to display these data in woo commerce admin and woocommerce email.
Basically, i need to save $date_start,$duration,$end_date when the order is completed and receive this data in woocomerce admin and emails.
function get_infos_order ($date_start,$duration){
$end_date = strtotime('+ '.$duration, $date_start);
}
Could someone please give some advices how to do that please ?
Thanks a lot.