The ACSD-50794 patch fixes the issue where users cannot remove gift wrapping from the customer order via GraphQL. This patch is available when the Quality Patches Tool (QPT) 1.1.32 is installed. The patch ID is ACSD-50794. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.7.
The patch is created for Adobe Commerce version:
Compatible with Adobe Commerce versions:
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.
Users cannot remove gift wrapping from the customer order via GraphQL.
Steps to reproduce:
Create a customer from the frontend.
Create a simple product.
Enable Gift Messages by going to Stores > Configuration > Sales > Gift Options and set Allow Gift Messages = Yes.
Create Gift Wrapping by going to Stores > Other Settings > Gift Wrapping.
Get customer token.
Create an empty cart, customerCart.
addProductsToCart
mutationsetBillingAddressOnCart
mutationsetShippingAddressesOnCart
mutationsetShippingMethodsOnCart
mutation (flatrate)setPaymentMethodOnCart
mutation (checkmo)Now check the gift wrapping Uid with this cart query:
{
cart(cart_id: "{{CART_ID}}") {
available_gift_wrappings{
uid
}
}
}
Set gift wrap using setGiftOptionsOnCart
.
Check the cart: cart query.
Unset gift wrap using setGiftOptionsOnCart
(set value to null).
Again, check the cart: cart query.
Place order: placeOrder
mutation.
Run customer query: customer.
query {
customer {
firstname
middlename
lastname
suffix
email
orders {
items {
order_date
gift_wrapping {
design
uid
}
}
}
addresses {
firstname
middlename
lastname
street
city
region {
region_code
region
}
postcode
country_code
telephone
}
}
}
Expected results:
Once a user sets a gift wrap and unsets it, the customer query returns null.
Actual results:
Customer query still returns gift wrapping as applied.
To apply individual patches, use the following links depending on your deployment method:
To learn more about Quality Patches Tool, refer to:
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.