The MDVA-30837 patch adds configuration options for the free shipping calculation so the user can configure the Minimum Order Amount to get Free Shipping based on the Subtotal (or Grand Total). This allows local customizations for tax and shipping methods. This patch is available when the Quality Patches Tool (QPT) 1.0.7 is installed. Please note that the issue was fixed in Adobe Commerce 2.4.2.
The patch is created for Adobe Commerce version:
Compatible with Adobe Commerce versions:
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.
The patch MDVA-30837 adds the configuration setting to configure the Minimum Order Amount setting to get free shipping based on the Subtotal (or Grand Total):
Steps to reproduce:
Go to Stores > Settings > Configuration > Sales > Tax and set the following:
Go to Sales > Shipping Settings > Free Shipping and set Minimum Order Amount = 30.
Go to Marketing > Promotions > Cart Price Rules and create a new price rule (for detailed steps, refer to Create a Cart Price Rule in our user guide).
Create a product with a price of $23.10.
Add the CA tax to the default tax rule.
Add this product to the cart.
Get a shipping quote - after taxes, the Grand Total = $25.01 and free shipping is applied.
Apply the coupon code - it will not be valid because the Subtotal (Excluding Tax) is $23.10.
Expected results:
There is an additional configuration setting - Include Tax to Amount: Yes/No in Free Shipping method configuration:
Actual results:
The Free Shipping price rule condition can only be based on the Subtotal, while the Free Shipping method can only be based on the Grand Total.
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.