×

Can't Use Shipping Classes

Home WPAli Support Forums Shipping Rate by Distance Can't Use Shipping Classes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #909
    stapolin
    Participant

    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?

    #910
    Ali Khallad
    Keymaster

    We can add a filter hook in the plugin that will allow you to use your own conditions to either apply shipping rate or not, you have to write your own code though, would that work for you?

    #911
    Ali Khallad
    Keymaster

    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.

    #912
    stapolin
    Participant

    Thanks Ali for the quick response.

    I will give that a try.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.