Often stores offer shipping only upto certain distance. For example, I was working on this site where owners only deliver to a distance of 25 mile. For distance greater than 25 mile, they want to show a custom message. To achieve this we need a plugin called Web Data Distance Based Fee for Woocommerce.
Here, from Woocommerce shipping settings, we will set a flat rate shipping fee. Here are the steps
Next, install the plugin and you will be taken to setting option. You can also access the setting option from Dashboad Settings > Distance based free settings
And that’s it. You can now go to cart or chekcout and check your reselt. If you do not see any change, you might need to go to Shipping Method Settings and save it again.