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

Created by Esther Nguyen, Modified on Fri, 12 Nov 2021 at 03:57 PM by Esther Nguyen

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!

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 atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article