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

Not converting DHL Express Commerce live shipping rates

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!

I have installed the DHL EXPRESS COMMERCE plugin, which pulls the applicable profile rates directly from DHL. However, DHL are returning the value of the shipping in a currency of ZAR, where as our website base currency is USD. The WOOCS Currency converter plugin is not converting this amount to USD and therefore it is being displayed incorrectly. See attached image, its showing $459.85 (the value is ZAR from our profile). it should be 31.53 USD

Please assist with adapting the code or plugin, so that when the DHL rates are received, it is converted to the correct currency.

Thank you!

Hello

Please  read  this - https://currency-switcher.com/woocs-labs/

Add  wp-admin+ FTP access  to  your test  site

Sure. Please see link here:

Spoiler
PRIVATE DATA

Hello

Please add  FTP access   - https://c2n.me/43SC6rb.png ->https://c2n.me/42BAoj4.png

I will add this third party plugin to the adaptation queue

Thanks very much, I have added the requested info in the"Private data for this topic" area

Please confirm if all is alright, or if there is anything further I can provide you with.

Regards, PicFlick

Hello

Ok! I added this plugin to the adaptation queue

Thanks. This is very much appreciated.

Please advise when this will be complete, and how I can incorporate the new adaption into my website.

Thanks, PicFlick

Hello PicFlick

I will write to you as soon as we get the result

Good day,

Please will you advise if this request has been attended to?

If not, Are you able to please give an ETA when we can expect this to be resolved.

Thanks,
PicFlick

Hello

Now you are tenth in line. I think in the middle of next month we will do it

But maybe even earlier, because this plugin is already in the queue (by another user)

Hello

Try  in  file  - wp-content\plugins\woocommerce-dhlexpress-services\woocommerce-dhlexpress-services.php - add this  code - https://c2n.me/4azrunP.png

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$current = $WOOCS->current_currency;
$currencies = $WOOCS->get_currencies();
$def_currency = $WOOCS->default_currency;
if (isset($currencies['ZAR']) AND $def_currency!=='ZAR') {

$rate = $currencies['ZAR']['rate'];
$rate -> {'total_price'} = $rate -> {'total_price'}/ $rate;
}
}
}

And  do a test please

Hello!

I am so glad that you have worked on this. Thank you very much!

However, it is quite unfortunate that the code you provided did not work... When I inserted it into the file and attempted to put the location to USA, it responded with"There are no shipping rates available". When I removed the code and tried to revert it back to the original file code, the website crashed and I had to restore it to previous versions.

Please see 2 pics:

  1. Location of code and text - https://ibb.co/rQhtF4x
  2. Result of the test on check-out page - https://ibb.co/RTFsbqw

Please advise how we can resolve this to ensure that the snipped of code you provide will address the original currency conversion request.

Let me know if you need any more info/images etc.

Thanks and regards, PicFlick

Hello

I  will  check it

Hi,

Awaiting feedback and update on code snippet please?!

Thanks,

Hello

I checked it. After I disabled my plugin, the shipping method did not appear