M2.2.x: Fix the error that Pre Order function does not work with configurable product when config Use Flat Catalog Product/Use Flat Catalog Category

Created by Support Agent, Modified on Sun, 19 Apr at 10:49 PM by Support Agent

Issue: 

I installed the module version 1.1.5 on my Magento version 2.2.3. When config the child product of configurable product is Out of stock and Preorder set Yes/ When becomes out of stock, I found that on the product page, it does not show the Preorder button + Preorder message + Available Date.

Another thing, when setting all child products of configurable product is Preorder, the Preorder button does not show for the parent product.

How could you help to fix the issue?


Solution:

This issue is caused due to module Pre Order bug when config Use Flat Catalog Product Use Flat Catalog Category configurable product.

This issue only happens on Magento 2.2.x only since on Magento 2.3.x, it does not support Flat Catalog function anymore (https://docs.magento.com/user-guide/catalog/catalog-flat.html)

To fix this issue, we would like to give the hot-fix. 

We have edited this file:

app/code/Bss/PreOrder/Model/Attribute/Source/Order.php

Please check the attachment below to get the changed file and replace it on your site.


For any further support, please don't hesitate to contact us at support@bsscommerce.com

We're always willing to support. If you need further our information, here is:


BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.


We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


Visit us to get more useful plugins: https://bsscommerce.com/magento-2-extensions.html 


Here to discover our extensions:

Attachments (1)

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