I’m trying to set up shipping classes but there is no shipping class options when using Shipping Rate By Distance. Not all product shipping prices are calculated by distance, some are very heavy and are charged shipping regardless of distance.
I can set up a separate shipping method and add the shipping class rates to that, but the distance rate still shows on the Cart page, which would give free shipping to anyone who clicks on it, which is not what we want when certain products are in the shopping cart.
Is there a way to use classes with Distance Shipping?
We added this filter wpali_control_add_distance_shipping_rate it uses boolean value, so you can do your check on calculate_shipping method by using the hook above and decide based on your own condition if the plugin should apply any rates or not by returning true or false.