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
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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:

  1. On the Admin sidebar, go to Stores > Settings > Configuration. In the left panel, expand Catalog and select Inventory.

  2. Expand the Stock Options section.

  3. Set Display Out of Stock Products to Yes.

  4. Click Save Config.

  5. Create a new category.

  6. Create a few products and add them to the category.

  7. Create two simple products:

    1. simple1: priced at $10 and set to In Stock with a positive quantity.
    2. simple2: priced at $20 and set to Out of Stock.
  8. Create a bundle product containing both simple products as separate, required options.

  9. 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools