ACSD-68190: Discounts not applied correctly and removed after coupon removal in GraphQL cart view
The ACSD-68190 patch fixes the issue where discounts don’t apply, applied discounts don’t display correctly in the GraphQL cart view response, and non-coupon discounts are removed on removing a coupon discount. This patch is available when the Quality Patches Tool (QPT) 1.1.73 is installed. The patch ID is ACSD-68190. Please note that this 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.6-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.6-p13
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 discounts don’t apply, applied discounts don’t display correctly in the GraphQL cart view response, and non-coupon discounts are removed on removing a coupon discount.
Steps to reproduce:
- Create the following category tree:
- New Root Category
- category1
- subcategory 1.1
- category1
- New Root Category
- Go to Stores > Stores and assign the newly created root category to your store.
- Create a new product and assign it to category1.
- Create Rule1 applicable to category1 (no coupon required).
- Set “Discard subsequent rules” = NO.
- Create Rule2 (specific coupon required).
- Set “Discard subsequent rules” = NO
- Create a customer.
- Use GraphQL to get customer token.
- Add product to cart using GraphQL.
- Check that Rule1 (non-coupon discount) is not applied initially.
- Apply coupon using GraphQL
applyCouponToCartmutation. - Verify both Rule1 and Rule2 discounts are now applied.
- Remove coupon using GraphQL
removeCouponFromCartmutation.
Expected results:
Only the coupon discount should be removed; non-coupon discounts should remain.
Non-coupon discounts (Rule1) should remain applied to the cart.
Actual results:
All discounts are removed when using removeCouponFromCart.
The cart response shows no applied discounts, even though non-coupon discounts should still be active.
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.