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
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:
-
Go to the Commerce Admin panel.
-
Go to CATALOG > Products > Add Product > Bundle Product.
-
Set [UICONROL Dynamic Price] to Yes.
-
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
-
-
Save product.
-
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. -
Go to the Commerce Admin panel. Go to CATALOG > Products.
-
Find one of the simple products assigned as an option to the bundle product earlier:
SKU 24-MB01 and a price of $34. -
Change its quantity to 0.
-
Save the product.
-
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:
- 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 released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.