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

Waqas

I hope you enjoy reading this blog post. If you want my team to do WooCommerce Maintenance for you, click here.

Leave a Comment

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