[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

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

  1. Create the following category tree:
    1. New Root Category
      1. category1
        1. subcategory 1.1
  2. Go to Stores > Stores and assign the newly created root category to your store.
  3. Create a new product and assign it to category1.
  4. Create Rule1 applicable to category1 (no coupon required).
  5. Set “Discard subsequent rules” = NO.
  6. Create Rule2 (specific coupon required).
  7. Set “Discard subsequent rules” = NO
  8. Create a customer.
  9. Use GraphQL to get customer token.
  10. Add product to cart using GraphQL.
  11. Check that Rule1 (non-coupon discount) is not applied initially.
  12. Apply coupon using GraphQL applyCouponToCart mutation.
  13. Verify both Rule1 and Rule2 discounts are now applied.
  14. Remove coupon using GraphQL removeCouponFromCart mutation.

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:

To learn more about Quality Patches Tool, refer to:

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