ACP2E-3211: Parallel add-to-cart requests create separate items for the same SKU
The ACP2E-3211 patch fixes the issue where adding the same product to the cart at the same time on the Storefront creates separate items in the cart for the same SKU instead of combining them into a single item. This patch is available when the Quality Patches Tool (QPT) 1.1.83 is installed. The patch ID is ACP2E-3211. Please note that this issue was 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.5-p7
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.5 - 2.4.7-p10
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
Adding the same product to the cart at the same time on the Storefront creates separate items in the cart for the same SKU instead of combining them into a single item.
Steps to reproduce:
- Create a new product.
- Create a new customer account, and log in.
- Go to product page, open Dev tools > Network, then add the product to the cart.
- Copy the curl (bash) request of adding product to cart.
- Use copied curl query in two console instances to trigger it as quickly as possible twice.
Expected results:
- The product is added as a single cart item, with
qty=2.
Actual results:
- The product is added as two separate cart items.
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