ACSD-47704: Bundled product shows the price of in stock products only

The ACSD-47704 patch fixes the issue where customer segment prices are cached incorrectly between customer groups. This patch is available when the Quality Patches Tool (QPT) 1.1.28 is installed. The patch ID is ACSD-47704. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.7.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.1-p1

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.3.7 - 2.4.6-p2
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 price of a bundled product with Dynamic Pricing enabled is incorrect due to only in-stock items being included.

Steps to reproduce:

  1. Go to the Commerce Admin panel.

  2. Go to CATALOG > Products > Add Product > Bundle Product.

  3. Set [UICONROL Dynamic Price] to Yes.

  4. Bundle items:

    • Set Ship bundle items to Together

    • Select Add Option

      • Title = o1
      • Input type = Dropdown
      • Mark required checkbox
      • Add any simple product which is in stock; for example, Joust Duffle Bag SKU 24-MB01. Before adding the product, note down its price - $34
    • Default quantity: 1

    • Select Add Option

      • Option Title = o2
      • Input type = Dropdown
      • Mark required checkbox
      • Add any simple product which is in stock, different from the product added in the step before; for example - Strive Shoulder Pack 24-MB04. Before adding the product, note down its price - $32
      • Default quantity: 1
  5. Save product.

  6. Go to the storefront and find the product created in the previous steps. Note down its price - $66
    (66 = 32 + 34).
    Currently, the price of the bundle product is equal to the sum of the prices of its options.

  7. Go to the Commerce Admin panel. Go to CATALOG > Products.

  8. Find one of the simple products assigned as an option to the bundle product earlier:
    SKU 24-MB01 and a price of $34.

  9. Change its quantity to 0.

  10. Save the product.

  11. Go to the storefront and find the bundle product created in the previous steps. Note down its price - $32. Previously it was priced at $66, which was the sum of $34 from SKU 24-MB01 and $32 from SKU 24-MB04. Now that product 24-MB01 is out of stock, the bundle price is listed as $32. It is the price of the other product, which is an in-stock option.

Expected results:

The price of bundle products with Dynamic Pricing enabled is calculated consistently, no matter if options are in stock or out of stock.

Actual results:

The price of the bundle product with Dynamic Pricing enabled is miscalculated. It takes into account only options that are in stock, resulting in a lower amount displayed than the actual one when one of the options is out of stock.

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:

For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.

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