Get Status on Print
-
Hi,
Could you please help me with attempting to get the status of a order ie. Printed/Not Printed.Currently, the plugin shows a tick next to the order but is it possible for me to add an order note with a snippet in the following form:
// Update order note by packing slip creation add_action('order_printed', function ($order_id) { if(packing_slip_status == 'true'){ $order = new WC_Order($order_id); $date = new DateTime(); $note = __("The Order was printed on: $date"); $order->add_order_note( $note ); } } );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Get Status on Print’ is closed to new replies.