Stock is not restoredwhen order is cancelled
-
Hi!
I created a custom order status for a certain payment gateway. When such orders are cancelled the stock is not automatically restored as it is with other order statuses.
Could you fix this?
I tried a filter:
add_action( ‘woocommerce_order_status_???_to_cancelled’, array( $this, ‘restore_order_stock’ ), 10, 1 );
but I don’t know if this is the best solution and I could not get it to work since I don’t know what to write instead of ??? above.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Stock is not restoredwhen order is cancelled’ is closed to new replies.