Add order status to invoice
-
I saw previously code from this forum that allowed this to be done, but it did not work.
Here it is:add_filter('wf_alter_shipmentlabel_from_address', 'wf_include_order_status', 10, 3); function wf_include_order_status($from_address, $order, $address) { $order = ( WC()->version < '2.7.0' ) ? new WC_Order($order_id) : new wf_order($order); $from_address .= '<br>'.'Order Status: '.$order->get_status(); return $from_address; }
any guidance would be appreciated.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.