The MDVA-34943 Magento patch solves the issue where a quick order can't add 2 or more products to the cart.
This patch is available when the Magento Quality Patch (MQP) tool 1.0.17 is installed. Please note that the issue was fixed in Magento version 2.4.2.
Affected products and versions
The patch is created for Magento version:
Magento Commerce Cloud 2.4.0-p1
Compatible with Magento versions:
Magento Commerce Cloud and Magento Commerce 2.3.0 - 2.4.1-p1
Note: the patch can be applicable to other versions. To check if the patch is compatible with your Magento version, run ./vendor/bin/magento-patches status
.
Issue
Preconditions:
Magento Commerce with simple products.
Steps to reproduce:
- Go to Quick Order on the Storefront (while not logged in).
- Enter a valid SKU, click the product that shows up in the autocomplete field, and set Quantity = 1.
- Enter the same valid SKU, but change the case (change uppercase to lowercase, or change lowercase to uppercase) of the 1st character, and click the product that shows up in the autocomplete field, and set Quantity = 1.
- Enter a
random_sting_value
for SKU, and set Quantity = 1. - Set SKU = 123123123, and set Quantity = 1.
- Delete everything except the 1st entry you added to the Quick Order page.
- Enter the 1st SKU (similar to Step 2 above) in the Enter Multiple SKUs field, and click Add to List.
- This results in a quantity of 2 for the 1st SKU and a line for a
random_sting_value
. - To test more, refresh the page.
- This results in no SKUs for quick order, as expected.
- Enter a
random_sting_value2
into the Enter Multiple SKUs field, and click Add to List. - This results in 2 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 1st added product appears normally, but for the 2nd product and any subsequent products added to the cart, a "1 product requires attention" error message appears. The 2nd 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 Magento product:
- Magento Commerce: DevDocs Software Update Guide > Apply Patches.
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply Patches.
Related reading
To learn more about Magento Quality Patches, refer to:
- Magento Quality Patches released: a new tool to self-serve quality patches.
- Check patch for Magento issue with Magento Quality Patches.
For info about other patches available in MQP tool, refer to the Patches available in MQP tool section.