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

REST API DHL Shipping Fee compatibility [WOOCS LABS]

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.

Our international shipping service DHL recently changed to use REST API to calculate the shipping fee.

Problem is it is not converting to the correct currency, the symbol changes but the amount is staying in ZAR.
Ex. Shipping fee from South Africa to Canada is R850 but if I switch it only changes to $850.

You can test it here: https://www.sittingpretty.co.za/

This is where to download the plugin: https://dhlcommerce.zendesk.com/hc/en-gb/articles/360035934192-Rates-at-checkout-for-WooCommerce

If more documentation is required DHL said they can give another link, but they say this should be enough.

I spoke to DHL and they recommend your plugin to all their customers, so this will be a huge benefit for anyone who already has your plugin as it will now be a problem for everyone. For South-Africa, he said he has about 400 customers who are using this plugin and they most certainly must also be experiencing this issue.

Hello

Please  drop  me  wp-admin+FTP  access to your  test  site - - https://c2n.me/43SC6rb.png -> https://c2n.me/42BAoj4.png

I will add this to the adaptation queue

Hi,

You'll have to work on the live site, we don't have a staging environment.

Apologies, didnt realise you needed the wp-admin and FTP's. I've added it in.

What is the estimate waiting time for the adaption?

Hello

What is the estimate waiting time for the adaption? - about one week

Hello

What should I do to receive this shipping method? - https://c2n.me/48vvQaQ.png

Hi Pablo,

GBP - order amount less than 95

USD - order amount less than 120

EUR - order amount less than 110

 

Is it working? The amount looks like its switching :)

Hello

https://c2n.me/48w3ys5.png

I added  some  code - but can't test this

Hi,

 

We only use DHL for international orders (outside of South-Africa), seems to be working if I test it.

I'll keep you updated if anything changes.

 

Thanks so much, for always giving such great and quick support.

Really appreciate the effort.

Will you be placing this publicly for other DHL customers to reference from? Would like to give the link to DHL to give to them.

Hello

I will add an article here - https://currency-switcher.com/codex/#compatibility

Solution:

in file -\wp-content\plugins\dhl-woocommerce-shipping\dhl_eccommerce\includes\class-wf-dhl-woocommerce-shipping.php

https://c2n.me/48vxVZM.png

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$total_value = $WOOCS->woocs_exchange_value(floatval($total_value));
}
}