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