This code will another row to the order email table to add in some regularly recurring information about the order. In this example we are including a line about the standard one year warranty.
/**
* Add custom row to order email table
*/
add_filter('woocommerce_get_order_item_totals', 'cc_add_custom_row_to_email', 10, 2);
function cc_add_custom_row_to_email($total_rows, $myorder_obj) {
$total_rows['recurr_not'] = array(
'label' => __('Warranty:', 'woocommerce'),
'value' => '1 year'
);
return $total_rows;
}
View Raw
Code ID: 9918