Module doesn't check child product on M2.2.x

Created by Jane D, Modified on Mon, 31 Aug, 2020 at 2:46 PM by Jane D

QUESTION: 

I use module v1.0.9 for my Magento 2.2.6. I set Pre Order option "When Product Become Out Of Stock" as this style is still in stock. Then I change one size to out of stock and the Pre Order button doesn't appear.
The PreOrder button just shows all the child products are out of stock.

How to solve this error?


ANSWER:

The issue happens due to the fact that the module doesn't check child product, the function isAvailable() doesn't work on Magento 2.2.x.


To resolve this issue, please edit the file as below or download the attached file and overwrite the current file on your site. 


If there is anything else we might help you, please do not hesitate to contact us via https://bsscommerce.com/contact

We'd be happy to support.

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