Order status and ticket links
-
If I understand correctly, this plugin sends the letters with ticket views links only after administrator will change by hand the order status from ‘Processing’ to ‘Completed’?
If yes, I have another question, how do you think, will this filter change order status from ‘Processing’ to ‘Completed’ and send the letters with ticket views links?
add_action( 'woocommerce_thankyou', 'woocommerce_thankyou_change_order_status', 10, 1 ); function woocommerce_thankyou_change_order_status( $order_id ){ if( ! $order_id ) return; $order = wc_get_order( $order_id ); if( $order->get_status() == 'processing' ) $order->update_status( 'completed' ); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Order status and ticket links’ is closed to new replies.