WooCommerce Batch Numbers provides a set of email notifications that are helpful to manage batches stocks and expiration dates. Let’s see how it works.
On expiration #
You can choose to receive an email every time a batch gets expired. This notification only happens once per batch.
![](https://docs.wpovernight.com/wp-content/uploads/2022/05/Captura-de-ecra-de-2022-05-26-10-45-55.png)
On offset #
The offset is a number of days given to a batch or sets of batches, that is attached before the expiration date. When the expiration enters the offset range, the store administrator could receive a notification informing that some batch got expired. This setting depends on the “Archive batches” option value which must be “On offset”:
![](https://docs.wpovernight.com/wp-content/uploads/2022/05/Captura-de-ecra-de-2022-05-26-11-04-11.png)
Example: we have a batch expiring on 2030-12-31 and we set the offset to 30 days, this means that when the current date is 2030-12-01 an email notification is triggered.
![](https://docs.wpovernight.com/wp-content/uploads/2022/05/Captura-de-ecra-de-2022-05-26-10-46-20.png)
The offset can be defined globally:
![](https://docs.wpovernight.com/wp-content/uploads/2022/05/Captura-de-ecra-de-2022-05-26-10-43-51.png)
Or at a product level:
![](https://docs.wpovernight.com/wp-content/uploads/2022/05/Captura-de-ecra-de-2022-05-26-10-44-30.png)
You could also opt to receive the same notification every day until the batch expires:
![](https://docs.wpovernight.com/wp-content/uploads/2022/05/Captura-de-ecra-de-2022-05-26-10-45-13.png)
On sold out #
If you want to be notified every time a batch gets sold out (runs out of stock), you just need to enable this option in the plugin settings:
![](https://docs.wpovernight.com/wp-content/uploads/2022/05/Captura-de-ecra-de-2022-05-26-10-49-14.png)
When archived on offset #
Choose to be notified when a batch gets archived on offset. The offset value in days could be set globally or per product.
![](https://docs.wpovernight.com/wp-content/uploads/2022/05/Captura-de-ecra-de-2022-05-26-10-52-04.png)
On expiration date offset #
This option differs from the “On offset” notification because doesn’t trigger when the batch actually expires, it’s only to notify that is expiring soon.
![](https://docs.wpovernight.com/wp-content/uploads/2022/05/Captura-de-ecra-de-2022-05-26-11-03-18.png)
Email address to receive notifications #
Now you could choose in which email address you should receive the notifications. You can choose from 3 options:
- Admin email
- WooCommerce email
- Custom email