v1.1.9: How to fix error not show product on the category if the config Display Out of Stock Product with Pre-Order Status Only = Yes?

Created by Jane D, Modified on Thu, 24 Feb, 2022 at 1:58 PM by Jane D

QUESTION:


Hi guys!


According to your guide, if I set the config Display Out of Stock Product with Pre-Order Status Only = Yes, the out of stock which is PreOrder will be shown on the frontend.

However, after I config on our site, it shows on the product page, but these PreOrder products are not shown on the category page.


Do you have any idea?

Note that we use M2.4.1, module v1.1.9.


ANSWER:


To fix this error, please download the files fix I attached below and overrides the current files on your site:


+ app/code/Bss/CustomPreorder/Plugin/Model/Layer/CheckOutOfStockOptions.php

+ app/code/Bss/CustomPreorder/etc/di.xml


If you need further assistance, please do not hesitate to contact us. 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