If you offer free shipping for more than a certain order value, it can be helpful to show a message in the cart to tell the customer how much more they need to spend to qualify for free shipping.
When you have a number of possible shipping options available but one of them is free, there is no point making your customer choose between them. This code hides any paid options when free shipping is available.
To simplify the shopping cart by removing the shipping line entirely, use this code.
This code can be used to add weight-based shipping options to the checkout process. The various shipping options are first defined in settings as a flat rate in the usual way. You will then need to find the ID for each method that you want to manage. Right-click on the method heading and choose inspect … Read moreApply weight-based shipping options in the checkout process