This topic has 4 replies, 3 voices, and was last updated 6 months, 1 weeks ago ago by Andrew Mitchell
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?
See private area for access to the backend of my website.
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.
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
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