MDVA-34943: Quick order can’t add 2+ products to cart

The MDVA-34943 patch solves the issue where a quick order can’t add two or more products to the cart. This patch is available when the Quality Patches Tool (QPT) 1.0.17 is installed. Please note that the issue was fixed in Adobe Commerce version 2.4.2.

Affected products and versions

The patch is created for Adobe Commerce version:

Adobe Commerce on cloud infrastructure 2.4.0-p1

Compatible with Adobe Commerce versions:

Adobe Commerce on cloud infrastructure and Adobe Commerce on-premises 2.3.0 - 2.4.1-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

Users are unable to add two or more products to the cart in quick order.

Prerequisites:

Adobe Commerce with simple products.

Steps to reproduce:

  1. Go to Quick Order on the Storefront (while not logged in).
  2. Enter a valid SKU, click the product that shows up in the autocomplete field, and set Quantity = 1.
  3. Enter the same valid SKU, but change the case (change uppercase to lowercase, or change lowercase to uppercase) of the first character, and click the product that shows up in the autocomplete field, and set Quantity = 1.
  4. Enter a random_sting_value for SKU, and set Quantity = 1.
  5. Set SKU = 123123123, and set Quantity = 1.
  6. Delete everything except the first entry you added to the Quick Order page.
  7. Enter the 1st SKU (similar to Step 2 above) in the Enter Multiple SKUs field, and click Add to List.
  8. This results in a quantity of 2 for the first SKU and a line for a random_sting_value.
  9. To test more, refresh the page.
  10. This results in no SKUs for quick order, as expected.
  11. Enter a random_sting_value2 into the Enter Multiple SKUs field, and click Add to List.
  12. This results in two valid SKUs from before and a random_sting_value2.

Expected results:

Two or more products are able to be added to the cart, as expected.

Actual results:

When taken to the Cart page, the first added product appears normally, but for the second product and any subsequent products added to the cart, a “1 product requires attention” error message appears. The second or any additional products will be listed on the Product Requires Attention section of the Cart page.

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 the Patches available in QPT section.

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