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
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:
- Create four products with a price of $1000.
- Create three cart price rules without any conditions that give a $100 discount for the whole cart.
- Create another cart price rule that gives a $100 discount for the whole cart, with a condition that prevents the rule from being applied.
- Disable the rule.
- Add three products to the shopping cart and observe the discount in the cart.
- Add additional products to the cart and observe the discount in the cart.
- Enable the disabled cart price rule.
- Update the shopping cart page and observe the discount in the cart.
Expected results:
- Adding additional products to the cart does not change the amount of discount.
- Enabling the cart price rule with a condition that doesn’t apply does not change the amount of discount.
Actual results:
- Adding additional products to the cart changes the amount of discount.
- 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:
- 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: A self-service tool for quality patches in the Tools guide.