MDVA-36138: free shipping rule not applied cart multiple items

The MDVA-36138 patch fixes the issue where when there are multiple items in the cart, the matching SKU in the Free Shipping is not getting free shipping applied to it. This patch is available when the Quality Patches Tool (QPT) 1.0.21 is installed. The patch ID is MDVA-36138. Please note that the issue was fixed in Adobe Commerce 2.4.3.

Affected products and versions

The patch is created for Adobe Commerce version:

Adobe Commerce on cloud infrastructure 2.3.4

Compatible with Adobe Commerce versions:

Adobe Commerce (all deployment methods) 2.3.2 and above

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

If a free shipping rule is applied to only specific items, the discount doesn’t apply when there are other items in the cart.

Steps to reproduce:

  1. Create simple products - simple1 and simple2.

  2. Configure USPS (or any online shipping method):

    • Allowed Methods: Priority Mail (one method selected for the purpose of not having a long list of methods in cart and checkout).
    • Free Method: Priority Mail.
  3. Create a shopping cart rule:

    • Specify coupon code
    • Conditions tab: leave empty
    • Actions tab:

    Condition: SKU is simple1
    Free Shipping: For matching items only

  4. Add simple1 to the cart.

  5. Apply the coupon code.

  6. Add simple2 to the cart.

Expected results:

  • simple1 - should have free shipping.
  • simple2 - shipping should be paid.

Actual results:

The shipping price includes simple1 and simple2.

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 Patches available in QPT in our developer documentation.

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