MDVA-44533: Discount incorrectly applied to bundled child product

The MDVA-44533 patch fixes the issue where a discount is incorrectly applied to a bundled child product. This patch is available when the Quality Patches Tool (QPT) 1.1.15 is installed. The patch ID is MDVA-44533. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.5.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.2-p2

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.3.1 - 2.4.3-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

Discount is incorrectly applied to a bundled child product.

Steps to reproduce:

  1. Create a simple product with price of 50$.

  2. Create a bundled product, and assign the simple product as the only option for the bundled product.

  3. Create a Cart Price Rule with:

    • Condition: If the total amount is greater than 130$
    • Action: Fixed amount discount of 10$ is applied
  4. Go to the storefront and add the bundle product to the cart with qty = 1.

  5. Go to the cart and check that the total cost of the bundle product is 50$ and the discount doesn’t apply.

  6. Change quantity to 2 and update the cart. The total cost of the bundled product should now be 100$.

Expected results:

The discount is not applied because the subtotal is 100$, which is less than 130$ in the rule condition.

Actual results:

The discount is applied.

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 Patches available in QPT in our developer documentation.

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