ACSD-62475: Fixes gift card merging issues in the cart
The ACSD-62475 patch fixes the issue where gift card products with different details are incorrectly merged into a single line item in the cart. This patch is available when the Quality Patches Tool (QPT) 1.1.56 is installed. The patch ID is ACSD-62475. 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-p1
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.7-p3
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
Gift Card products added to the cart with unique sender or recipient details are incorrectly merged into a single line item, resulting data inconsistencies.
Steps to reproduce:
-
Create a Gift Card product with the following settings:
- Card Type: Virtual
- Amount: 10
-
On the storefront, create a new user and log in.
-
Add the Gift Card product to the cart with the following details:
- Sender Name: Sender 1
- Sender Email: sender1@test.com
- Recipient Name: Recipient 1
- Recipient Email: recipient1@test.com
-
Log out
-
Add the same Gift Card product to the cart with the following details:
- Sender Name: Sender 2
- Sender Email: sender2@test.com
- Recipient Name: Recipient 2
- Recipient Email: recipient2@test.com
-
Log back in and check the cart.
Expected results:
Both Gift Cards should appear as two separate line items with their respective details.
Actual results:
The Gift Cards are merged into one line item with a quantity of 2, retaining the details of the first Gift Card.
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.