• Resolved yukon4

    (@yukon4)


    HELP!
    We are trying to get the DHL plugin setup for international orders. We have the UPS extension setup and appears to be working OK for domestic orders.

    In Woocommerce configuration, when setting up “Rest of the Word” – it allows us to select a shipping method. All the default Woocommerce choices are listed (flat rate, free, etc) along with the UPS that we installed, but NOT DHL! We’ve selected “enabled” for DHL, we have a brand new SiteID and all info entered for it.

    Why does DHL shipping not pop up as a shipping method to add to the cart?

    Thank you for your help!

Viewing 6 replies - 31 through 36 (of 36 total)
  • Thanks Yukon. The way you set it up is exactly what we’re looking for. For domestic (USA) shipping, we need USPS and UPS. For anything international, we need DHL.

    Nishad, I currently have the premium plugin configured with our DHL account information and it’s enabled, but it is not showing up at all in the cart. Say I select Italy in the cart, it says “no shipping methods available”. Any thoughts why DHL doesn’t show up in the cart?

    running-bum,

    I request you to raise a ticket at our support forum where you will get top notch support to resolve all pricing problems.

    As this is a free plugin support page, I will not be able to take queries for the paid plugin

    savantpcs

    (@savantpcs)

    Were you able to get this setup? I have the exact same inquiry. Just purchased the premium version and would like to configure it the exact same way you described: All areas outside USA will use DHL.

    xadapter

    (@xadapter)

    Hi @savantpcs,

    You can enable DHL for all countries and hide DHL shipping method only for USA by using a code snippet. Add the code to functions.php

    Code:

    add_filter(‘woocommerce_package_rates’, ‘wf_remove_shipping_options_for_particular_country’, 10, 2);

    function wf_remove_shipping_options_for_particular_country($available_shipping_methods, $package){

    global $woocommerce;

    //Config this array with country code and corresponding shipping methods to hide.

    $country_list = array(

    ‘US’ => array(‘wf_dhl_shipping’),

    );

    $customer_country = $woocommerce->customer->get_shipping_country();

    if ( in_array( $customer_country , array_keys($country_list) ) ) {

    if( !empty( $country_list[$customer_country] ) ){

    foreach ($country_list[$customer_country] as $shipping_methods) {

    foreach ($available_shipping_methods as $shipping_method => $value) {

    if( strpos( $shipping_method, $shipping_methods ) !== false ) {

    unset($available_shipping_methods[$shipping_method]);

    }

    }

    }

    }

    }

    return $available_shipping_methods;

    }

    savantpcs

    (@savantpcs)

    I am not the brightest when it comes to webdev. Which functions.php am I looking for? I know where to find the files but I feel like there will be more than one.

    xadapter

    (@xadapter)

    Hi @savantpcs,

    You can go to WordPress, Appearance->Editor-> Select the theme you’re on, and on the right site theme functions or functions.php should be available.

Viewing 6 replies - 31 through 36 (of 36 total)
  • The topic ‘DHL Method Not Showing Up’ is closed to new replies.