Live Search displays out-of-stock products regardless of stock status settings in admin

IMPORTANT
This issue was fixed in Live Search [2.0.4]. To install the latest version, refer to Updating Live Search in the user guide.

This article provides information on the known issue where the Product Listing Page (PLP) shows the We can’t find products matching the selection error while the search popover returns some items.

Affected products and versions

Adobe Commerce (all deployment methods) 2.4.x

Issue

Live Search displays search results regardless of the stock status settings in the Adobe Commerce Admin. Even when the Display Out-of-Stock Products is set to No, the products are displayed. It results in the PLP error We can’t find products matching the selection.

Steps to reproduce:

  1. Create a category, add products. (Example: Category = Jeans, Product1 = Blue Jeans, Product2 = Black Jeans)
  2. Make all products in the category out of stock.
  3. Set Display Out-of-Stock Products to No.
  4. On the storefront, enter Jeans in the search field.
  5. Click View All in the pop-up.

Expected result:

You see the We can’t find products matching the selection message on PLP, and no products are displayed on the search pop-up.

Actual result:

You see the We can’t find products matching the selection message on PLP, and both products are displayed on the search pop-up.

Solution

There is no solution for this issue at the moment. Our Live Search team will soon provide a setting to configure Live Search to display products correctly.

Install Live Search in our user guide.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a