Open uandiweb opened 2 years ago
Hi @uandiweb. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Do you happen to have gaps in your entity ids?
I just came here to report something similar to https://github.com/magento/magento2/issues/31224
Which is now happening specifically with MSI because of the plugin in module-inventory-catalog-search/Plugin/CatalogSearch/Model/Indexer/ChildProductFilterByInventoryStockPlugin.php
FYI it works when Show out of stock is set to yes because it checks that and returns without running the filter in the plugin:
if ($this->stockConfiguration->isShowOutOfStock($storeId) || empty($result)) {
return $result;
}
return $this->filterProductByStock->execute($result, (int)$storeId);
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Please note: When "Display Out of Stock Products" is set to "Yes" then products with positive "salable quantity" do show in category pages & search. However, I don't want to show out of stock products so this is not a good solution.
Below you can see my custom stock setup: