The Inconsistent Behavior of Magento Free Shipping Rules
Are you struggling with Magento’s free shipping rules not working as expected when combined with coupons? You’re not alone. Magento’s rule processing can sometimes feel like navigating a complex maze, especially when it comes to free shipment and coupon discounts.
Understanding the Problem: Rule Processing Priority
The issue seems to stem from how Magento processes pricing rules during checkout. By default, Magento stops further rule processing if a rule matches the initial conditions. In your case, both the free shipping rule and the discount coupon have “Stop Further Rule Processing” set to ‘No’.
This configuration means that Magento attempts to apply both rules simultaneously to the cart total. When you enter a coupon with a fixed discount amount, Magento first applies the discount to the cart total. If this discounted total is less than â¬100, the free shipping rule’s condition fails.
Why Your Free Shipping Disappears
Here’s what happens behind the scenes:
- The customer adds items to their cart.
- The order subtotal exceeds â¬100.
- Magento checks for matching free shipping rules (yours is set for NL, BE, and DE).
- The customer enters a coupon code with a fixed discount amount.
- Magento applies the fixed discount to the cart total.
- The new discounted subtotal may be less than â¬100.
Since your free shipping rule requires a minimum of â¬100, this discounted subtotal fails to meet the condition. Therefore, the free shipping option disappears from the checkout page.
A Simple Solution: Reorder Your Rules
The key to resolving this issue lies in the order Magento processes these rules. Currently, it’s applying the discount coupon first and then checking for free shipping. To ensure your free shipping rule always takes precedence:
- Log into your Magento admin panel.
- Go to Marketing > Promotions > Shopping Cart Price Rules.
- Click on Add New Rule if you need a new one or edit your existing rule.
The critical change is the “Sort Order” field:
Changing the Sort Order
This field determines which rule Magento will apply first during checkout processing. To solve your problem:
- Ensure both rules are set to have “Stop Further Rules Processing” set to ‘No’.
- For your free shipping rule, set a low sort order value (e.g., 0).
- For your discount coupon rule, set a higher sort order value (e.g., 1 or higher).
By setting the free shipping rule’s sort order lower than the discount rule’s, you’re telling Magento to process the free shipping rule first. This way, even if the coupon reduces the cart total below â¬100, the free shipping will still be applied.
Testing Your Changes
To verify the fix:
- Clear your cache.
- Visit a product page and add items until the subtotal exceeds â¬100.
- Proceed to checkout.
- Enter your discount coupon code.
- Observe that the free shipping option remains available, even after applying the coupon.
Conclusion: The Importance of Rule Ordering
Magento’s rule processing can seem counterintuitive at times, but with a clear understanding of how it operates and some strategic adjustments to sort order values, you can achieve the desired behavior.
Remember, Magento processes rules in ascending order based on their “Sort Order” field. Always prioritize your free shipping rules over any discount coupons by setting a lower value for the free shipping rule’s “Sort Order”.
If you continue facing issues or need further assistance with optimizing your Magento store, don’t hesitate to reach out to the experts at Laravel Company.
We specialize in providing customized solutions and expert guidance to help you maximize the potential of your eCommerce platform. Contact us today to discuss how we can assist you in streamlining your operations and enhancing your customers’ shopping experience with Magento.