Shipping Method Dependencies Order

Just wanted to share a solution for this scenario:[list=1]

[]Weight Dependencies: $18 for <10kg, $50 for >=10kg

[
]Cost Dependencies: If Subtotal >= $1500 then Free Shipping

[/list]

The problem I had was that weight dependencies would always override the cost dependency which meant that I would always get charged the $50 regardless of the sub total.



The solution I came across is attached.



Feedback, help, suggestions welcome - thanks



[attachment=9567:Screen Shot 2015-05-19 at 11.59.40 am.png]

Screen Shot 2015-05-19 at 11.59.40 am.png

Hello,



An interesting approach.



The logic of calculating manual rates located in function _calculateManualRate in the app/Tygh/Shippings/Shippings.php file.



So, rates from different dependecies are added to the final rate.



You can add a small condition in this function. But if it are working fine now, maybe you should not touch core functions.



Thank you.