WooCommerce Batch Numbers provides a setting to synchronize the product main stock seamless and automatically with the batches total stock.
You just need to go to the plugin settings and enable the option below:
![](https://docs.wpovernight.com/wp-content/uploads/2022/05/Captura-de-ecra-de-2022-05-26-11-08-24-1024x72.png)
The stock will now be synchronized once you add, update or remove batches on the product.
You could also force the synchronization manually, clicking the button below:
![](https://docs.wpovernight.com/wp-content/uploads/2021/09/sync-product-stock-with-batches-stock-manually.png)