How to restore stock automatically for cancelled and refunded orders in Woocommerce?

Woocommerce’s core doesn’t auto restore stock for cancelled and refunded orders.

So, in this tutorial we’ll learn how to overcome this deficiency with the help of a plugin.

Woocommerce Auto Restore Stock is the plugin that will help us achieve this. All you have to do is download, install and activate the plugin and it will do the rest.

You can download the plugin from here:

https://wordpress.org/plugins/woocommerce-auto-restore-stock/

woocommerce

Now, go to admin panel of your site and click on add new link under plugins.

Then click on upload plugin button.

woocommerce

From the next screen, browse and select the plugin from your computer and hit install button.

woocommerce

After completion of installation process, activate the plugin by clicking Activate Plugin link.

woocommerce

Now set stock quantity of a product either by creating a new one or editing an existing one.

woocommerce

woocommerce

Now go to your store front and add this item into cart by clicking on add to cart button.

After that navigate to cart.

woocommerce

I’ve updated the product quantity to 5. You can do it or not it’s up to you.

After that proceed to checkout.

woocommerce

Fill in shipping and billing details and place order.

woocommerce

Now if you go to products you’ll see the product quantity reduced.

woocommerce

Now go to orders and edit recently made order by clicking on it. Change status of it either to cancelled or refunded.

woocommerce

Save order and go back to products. You’ll see product quantity restocked.

woocommerce

CHEERS J

Editorial Staff

ThemeLocation Provides Wordpress & Woocommerce development & Customization services. Have a Project? Contact To discuss

One thought on “How to restore stock automatically for cancelled and refunded orders in Woocommerce?

  1. Hi! Thanks for introducing this great plugin! I am facing an issue though and wondering if you have a solution.

    Assuming I have a total stock count of 10, after a customer placed an order, the stock count is 9.
    If I change order status from Processing to Cancelled, the stock is increase by 1 (stock count of 10), thanks to the plugin.
    However, if under certain circumstances the order status is change from Cancelled to Completed (stock is not decreased) and then a Refund is issued, the stock is increase by 1 again. The stock count is now 11.

    The stock count is more than the stock we have initially. Do you have a solution to this?

    Jane

Leave a Reply

Your email address will not be published. Required fields are marked *