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

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:

  1. Create a Gift Card product with the following settings:

    • Card Type: Virtual
    • Amount: 10
  2. On the storefront, create a new user and log in.

  3. 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
  4. Log out

  5. 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
  6. 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:

To learn more about Quality Patches Tool, refer to:

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