Shipping methods don’t work in combination with DHL Servicepoint option and pick-up

This topic has 4 replies, 3 voices, and was last updated 6 months, 1 weeks ago ago by Andrew Mitchell

  • Avatar: Arnan
    Arnan
    Participant
    June 9, 2024 at 22:09

    Hi, I have a question about setting shipping options. I’ve looked at various topics but can’t quite figure it out. The situation is as follows.

    I charge €5.95 shipping costs for orders up to €50 or €4.95 to €50 if the customer wants to collect from a DHL Service Point. Both options are free for orders over €50. I also have three physical stores where customers should be able to pick up (free) and pay in the store.

    I have set the option to pick up in store, but unfortunately it is not shown.

    There is a plugin that works for DHL E-commerce. Customers can check this box and choose a DHL point. This works fine up to €50, but above €50 Woocommerce shows the Free shipping option. According to various forums, this is a known annoyance because it can be confusing for customers. If they order more than €50, only the options DHL Service Point, Home Delivery and Collection should be shown. And not Free Shipping again. There is a piece of code known to remove that option:

    function hide_shipping_when_free_is_available( $rates, $package ) {
    $new_rates = array();
    foreach ( $rates as $rate_id => $rate ) {
    // Only modify rates if free_shipping is present.
    if ( ‘free_shipping’ === $rate->method_id ) {
    $new_rates[ $rate_id ] = $rate;
    break;
    }
    }

    if ( ! empty( $new_rates ) ) {
    //Save local pickup if it’s present.
    foreach ( $rates as $rate_id => $rate ) {
    if (‘local_pickup’ === $rate->method_id ) {
    $new_rates[ $rate_id ] = $rate;
    break;
    }
    }
    return $new_rates;
    }

    return $rates;
    }

    But unfortunately this means that the DHL option (service point selector) is no longer shown. And that is not the intention. Is there a manual available from you on how to properly set such options so that they are all present and work properly?

    3 Answers
    Avatar: Arnan
    Arnan
    Participant
    June 9, 2024 at 22:11

    See private area for access to the backend of my website.

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    June 10, 2024 at 10:24

    Hi @Arnan,

    Please note that the issues related to 3rd party plugins must be directed to plugin’s author. Further cusomization codes and fall out of scope our support service.

    If you require personal customization services, we invite you to submit a request through our customization panel at: https://www.8theme.com/account/#etheme_customization_panel , and continue conversations with the technicians team directly.
    Please be advised that customization services will incur additional charges, the exact amount of which will be communicated following a detailed review of your request.

    Best Regards,
    [Luca Rossi]
    8Theme’s Team.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    June 10, 2024 at 18:18

    Dear Arnan,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Shipping methods don’t work in combination with DHL Servicepoint option and pick-up’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.