• 0

    I need to workout a shipping fee based on the distance and on the total cart weight. I am using WooCommerce Distance Rate Shipping plugin to get the distance. In their documentation they suggest using a filter hook to have both distance and weight, the only example they provide is as follow:

    add_filter( 'woocommerce_distance_rate_shipping_rule_cost_distance_shipping', function( $rule_cost, $rule, $distance, $package ) {
        $order_total = $package['contents_cost'];
        if ( $order_total > 100 && $distance <= 5 ) {
            $rule_cost = 0;
        }
    
      return $rule_cost;
    }, 10, 4 );

    I thought I could write some conditional code and return the shipping cost, but it is not what it does. I could not figure out what each of the paramenters is.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @stemon,

    Since you’re using the WooCommerce Distance Rate Shipping extension you have access to our support team at WooCommerce.com. As a licence holder, you are eligible for WooCommerce official support.

    Please contact us at WooCommerce.com > My Account > Support.

    You may need to log into your WooCommerce.com account before you can access that page. Also, include a link to this forum thread, so that we can keep track of what’s already been done.

    Thanks!

    Thread Starter Stefano Monteiro

    (@stemon)

    Thanks @rainfallnixfig.

    I am a collaborator in my client’s account who has purchased the plugin. For some reason, I do not have the option to select the plugin (extension) and open the chat.

    Any solution on this?
    Thnaks

    Mirko P.

    (@rainfallnixfig)

    Hi @stemon,

    Support for premium extensions is not provided on this forum which is only focused on the free WooCommerce core plugin.

    You may want to log in with the same account used to purchase the extension, which would be different from the one you’re currently logged in to if the extension is not listed.

    Alternatively, contact us via this link:

    https://woocommerce.com/contact-us/

    Choose the option “I need help with my account or with a product I purchased on WooCommerce.com” and “Need something else? Contact us!” (https://i.imgur.com/j0c634f.png)

    You can submit your support request via the contact form that will appear on the page.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setup Weight and Distance with WooCommerce Distance Rate Shipping Plugin’ is closed to new replies.