v1.2.7, M2.4.3: not running the cron job automatically for configurable products

Created by Esther Nguyen, Modified on Mon, 20 Apr at 12:03 AM by Support Agent

ISSUE:

I have enabled and set it up so it runs on cron on my site. My question is in regards to configurable products:

1, Initially, configurable products are out of stock.

2, If a child product of a configurable product comes into stock, it changes the configurable product to in stock. I believe this runs every 5 mins.

=> It will only send out emails when you manually run the cron. If you don’t run the cron job manually it will not send out the emails for the configurable products.


SOLUTION:

We found that the part checking productType doesn't check if the product exists or not, so it gets exceptions and can't run the cron automatically as expected.


To resolve the issue, we edited the file app/code/Bss/ProductStockAlert/Model/StockEmailProcessor.php as below: 



If you need any further assistance, please feel free to contact us. We'd be happy to support you!


Get to know 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.


Discover our extensions: https://bsscommerce.com/magento-2-extensions.html 


You can refer our top tier extensions:


If you need any further support, please feel free to contact us at sales@bsscommerce or via our support portal.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article