ACSD-61799: Incorrect total discount calculation with multiple fixed discount cart rules applied to quote

The ACSD-61799 patch solves/fixes the issue where the total discount is incorrectly calculated when multiple cart rules with fixed discounts are applied to the quote. This patch is available when the Quality Patches Tool (QPT) 1.1.54 is installed. The patch ID is ACSD-61799. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.8.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.4-p6

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.4 - 2.4.4-p11
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 total discount is incorrectly calculated when multiple cart rules with Fixed amount discount for the whole cart are applied to a shopping cart.

Steps to reproduce:

  1. Create four products with a price of $1000.
  2. Create three cart price rules without any conditions that give a $100 discount for the whole cart.
  3. Create another cart price rule that gives a $100 discount for the whole cart, with a condition that prevents the rule from being applied.
  4. Disable the rule.
  5. Add three products to the shopping cart and observe the discount in the cart.
  6. Add additional products to the cart and observe the discount in the cart.
  7. Enable the disabled cart price rule.
  8. Update the shopping cart page and observe the discount in the cart.

Expected results:

  1. Adding additional products to the cart does not change the amount of discount.
  2. Enabling the cart price rule with a condition that doesn’t apply does not change the amount of discount.

Actual results:

  1. Adding additional products to the cart changes the amount of discount.
  2. Enabling the cart price rule with a condition that doesn’t apply changes the amount of discount.

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:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3