ISSUE:
We have updated the product stock alert module to the latest version 1.2.9 as you suggested but the stock alert emails are not working in the production.
After investigating I have found there was an issue with the function “retrieveAffectedData” that split the collection into a batch size of 2000 records but every time collection returns only the first 2000 records when it goes in a loop.

SOLUTION:
There is a bug in the Out of Stock Notification module: If there are more records than the batch size (the default module set is 2000, which means there are more than 2000 subscribers), then the module only sends stock alert emails to the first 2000 people and stops.
To temporarily resolve the issue, please download the file StockEmailProcessor.php attached below to override the current file on your site.
If you need any further assistance, please feel free to contact us. BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.
Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.
You can refer our top tier extensions:
- https://bsscommerce.com/magento-2-b2b-extensions-package.html
- https://bsscommerce.com/magento-2-seo-extension.html
Please visit our site for more useful Magento 2 Extensions: https://bsscommerce.com/magento-2-extensions.html
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article