wc-processing and processing
-
Hello,
This plugin is exactly what i’m looking for.
But I had a small issue with the order list screen.It seems, that the status from this screen is not wc-processing but processing…. it seems strange but if I change the can_reduce_stock function by adding “processing” and “completed” it works fine.
In the order screen, it was OK with “wc-processing” status.`protected function can_reduce_stock( $order_id, $status ) {
return in_array( $status, array( ‘wc-processing’, ‘wc-completed’, ‘processing’, ‘completed’ ), true ) && ‘1’ !== get_post_meta( $order_id, ‘_order_stock_reduced’, true );’Do you know how we can explain that?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘wc-processing and processing’ is closed to new replies.