ACP2E-4475: Order or filter by price not working for out-of-stock bundle products
The ACP2E-4475 patch fixes the issue where the products listing page incorrectly filters and sorts out-of-stock bundle products by price when the Display Out of Stock Products option is enabled. This patch is available when the Quality Patches Tool (QPT) 1.1.79 is installed. The patch ID is ACP2E-4475. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.8-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.8-p4
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
The products listing page incorrectly filters and sorts out-of-stock bundle products by price when the Display Out of Stock Products option is enabled.
Steps to reproduce:
-
On the Admin sidebar, go to Stores > Settings > Configuration. In the left panel, expand Catalog and select Inventory.
-
Expand the Stock Options section.
-
Set Display Out of Stock Products to Yes.
-
Click Save Config.
-
Create a new category.
-
Create a few products and add them to the category.
-
Create two simple products:
- simple1: priced at $10 and set to In Stock with a positive quantity.
- simple2: priced at $20 and set to Out of Stock.
-
Create a bundle product containing both simple products as separate, required options.
-
Visit the category on the storefront and sort by Price.
Expected results:
The bundle product is displayed with a price of $30 (combined price of $10 and $20) and is sorted accordingly among other products in ascending price order.
Actual results:
The bundle product displays $10 instead of $30 and is sorted incorrectly.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.