ACSD-63469: Fixed-amount cart discounts not applied correctly with multiple rules
- Topics:
- Price Rules
CREATED FOR:
- Experienced
- Admin
- Developer
The ACSD-63469 patch fixes the issue where fixed-amount discounts for the whole cart do not apply properly when more than one rule is applied. This patch is available when the Quality Patches Tool (QPT) 1.1.59 is installed. The patch ID is ACSD-63469. 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.7-p2
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.7-p4
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
When multiple Fixed amount discount for whole cart rules are applied simultaneously, and the products have discounted or special prices, the discount value is calculated incorrectly.
Steps to reproduce:
-
Create two products priced at $850 and $85, and set their special prices to $765 and $68, respectively.
-
Create two Cart Price Rules as follows:
-
Rule 1
- Conditions: For the $850 product, set Qty to equals or greater than 2
- Actions: Apply Fixed amount discount for whole cart of $153
-
Rule 2
- Conditions: For the $85 product, set Qty to equals or greater than 2
- Actions: Apply Fixed amount discount for whole cart of $14
-
-
Add both products to the cart, each with a quantity of 2.
Expected results:
The discount applied in the cart is $167.
Actual results:
The discount applied in the cart is $41.
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.
Additional steps required after the patch installation
(This section is optional; there might be some steps required after applying the patch to fix the issue.)
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.