PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

[WOOCS LABS] ADAPTATION REQEST for DHL Express Commerce

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

You provide adaptation code for DHL Express Commerce plugin here https://currency-switcher.com/codex/#compatibility

But looks like it is no longer relevant. Please, could you check it.

When I add the code I get this message instead of shipping costs:

Thank you!

 

Hello

Please drop me  wp-admin+FTP access  to your test  site - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130637.png

I will add this plugin to the adaptation queue

Done!

Thank you!

Hello

oK! I will write to you as soon as I get the result

Thank you so much!

Hello

Please  do a  test

New code in the  same file:

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$current = $WOOCS->current_currency;
$currencies = $WOOCS->get_currencies();
$shipp_currency = $rate -> {'currency'};
$def_currency = $WOOCS->default_currency;
if (isset($currencies[$shipp_currency]) AND $def_currency !== $shipp_currency) {
$r = $currencies[$shipp_currency]['rate'];
$rate->total_price = $rate->total_price / $r;
}
}
}

Works great! Thank you so much for your assistance and wonderful plugin!<3

Welcome;)