Hi @jonatanharringq,
To add Shipping Method to invoice or packing slip you have to use the below code into your themes functions.php file.
/**
* Add Shipping Method to Invoice or Packing Slip.
*
* @param array $order_data Order Info
* @param string $template invoice or packing_slip
* @param WC_Order $order Order Object
*
* @return array
*/
function woo_invoice_add_shipping_method($order_data, $template, $order ){
//if('invoice'==$template){
if(!empty($order->get_shipping_method())){
$order_data['Shipping Method']=$order->get_shipping_method();
}
return $order_data;
//}
}
add_filter('woo_invoice_order_data','woo_invoice_add_shipping_method',10,3);
Here is the output screenshot: https://www.screencast.com/t/pVkMOCDm4u
You can follow the docs below for more customization:
https://webappick.helpscoutdocs.com/article/97-action-hooks-of-reference-woo-invoice
https://webappick.helpscoutdocs.com/article/112-how-to-use-actions-filters-hook-woo-invoice