Skip to content

Automatic stock restoration

WooCommerce reduces stock when an order is placed, but does not always restore it on cancellation. This module automatically restores the stock.

Go to WooCommerce > Polski > Modules and enable the Auto Restore Stock module in the “Stock & Cart” section.

From statusTo statusRestoration
ProcessingCancelledYes
CompletedCancelledYes
On-holdCancelledYes
ProcessingRefundedYes
CompletedRefundedYes
On-holdRefundedYes
ProcessingFailedYes
On-holdFailedYes
  1. The order changes its status to cancelled/refunded/unpaid
  2. The module checks each product in the order
  3. For products with stock management enabled, it restores the quantity
  4. It adds a note to the order: “Stock restored: Product name (5 -> 8)”
  5. It sets the _polski_stock_restored meta to prevent double restoration
  • The WooCommerce Manage stock option must be enabled
  • Products must have stock management enabled
HookTypeDescription
polski/stock/restoredactionAfter stock is restored for a product