ACSD-48044: applying multiple gift cards prevents orders from being placed

The ACSD-48044 patch fixes the issue where applying multiple gift cards to a single order with multi-shipping prevents orders from being placed. This patch is available when the Quality Patches Tool (QPT) 1.1.25 is installed. The patch ID is ACSD-48044. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.6.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.5-p1

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.3.4 - 2.4.5-p1
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

Applying multiple gift cards to a single order with multi-shipping prevents orders from being placed.

Steps to reproduce:

  1. Install a clean version of Adobe Commerce.

  2. Create a simple product with a price of $100 and another simple product with a price of $10.

  3. Log in to the Admin panel and create two gift cards.

    • 02KB8M0H0GRD = $50
    • 00GXM6SUGBLW = $25
  4. Create a customer with two addresses.

  5. Add two products to the cart.

    • Add the $10 product first, and then add the $100 product. The issue cannot be reproduced if the $100 product is added first.
  6. Go to the shopping cart and add the two gift cards you created.

  7. Click on Ship to Multiple Addresses on the cart page.

  8. Assign each product to a different address.

  9. Go to the Shipping information page.

  10. Go to the Billing information page.

  11. Go to the Review Your Order page, where you can see the issue.

  12. Try to place the order.

Expected results:

  • Gift cards are applied to the total amount correctly.
  • Orders are placed.

Actual results:

Gift card amounts are mixed with an error “Please correct the gift card code.” when placing the order.

  • First product:

    • Remove Gift Card (00GXM6SUGBLW) - $15.00
    • Remove Gift Card (02KB8M0H0GRD) - $0.00
  • Second Product:

    • Remove Gift Card (00GXM6SUGBLW) - $25.00
    • Remove Gift Card (02KB8M0H0GRD) - $35.00

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:

For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a