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
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 QPT landing page. Use the patch ID as a search keyword to locate the patch.
Discount is incorrectly applied to a bundled child product.
Steps to reproduce:
Create a simple product with price of 50$.
Create a bundled product, and assign the simple product as the only option for the bundled product.
Create a Cart Price Rule with:
- Condition: If the total amount is greater than 130$
- Action: Fixed amount discount of 10$ is applied
Go to the storefront and add the bundle product to the cart with qty = 1.
Go to the cart and check that the total cost of the bundle product is 50$ and the discount doesn't apply.
Change quantity to 2 and update the cart. The total cost of the bundled product should now be 100$.
The discount is not applied because the subtotal is 100$, which is less than 130$ in the rule condition.
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.