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 pleaseIf 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.
Quote from PicFlick on December 24, 2020, 08:57Hello!
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!
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!
Quote from Pablo Borysenco on December 24, 2020, 12:50Hello
Please read this - https://currency-switcher.com/woocs-labs/
Add wp-admin+ FTP access to your test site
Hello
Please read this - https://currency-switcher.com/woocs-labs/
Add wp-admin+ FTP access to your test site
Quote from PicFlick on December 24, 2020, 16:17Sure. Please see link here: [spoiler]PRIVATE DATA[/spoiler]
Sure. Please see link here:
Quote from Pablo Borysenco on December 25, 2020, 10:11Hello
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
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
Quote from PicFlick on December 25, 2020, 19:48Thanks 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
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
Quote from Pablo Borysenco on December 28, 2020, 10:50Hello
Ok! I added this plugin to the adaptation queue
Hello
Ok! I added this plugin to the adaptation queue
Quote from PicFlick on December 29, 2020, 07:52Thanks. 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
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
Quote from Pablo Borysenco on December 29, 2020, 11:40Hello PicFlick
I will write to you as soon as we get the result
Hello PicFlick
I will write to you as soon as we get the result
Quote from PicFlick on January 6, 2021, 21:44Good 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
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
Quote from Pablo Borysenco on January 7, 2021, 11:29Hello
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
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)
Quote from Pablo Borysenco on January 15, 2021, 18:38Hello
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
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
Quote from PicFlick on January 31, 2021, 12:29Hello!
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:
- Location of code and text - https://ibb.co/rQhtF4x
- 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 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:
- Location of code and text - https://ibb.co/rQhtF4x
- 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
Quote from Pablo Borysenco on February 1, 2021, 11:19Hello
I will check it
Hello
I will check it
Quote from PicFlick on February 10, 2021, 17:38Hi,
Awaiting feedback and update on code snippet please?!
Thanks,
Hi,
Awaiting feedback and update on code snippet please?!
Thanks,
Quote from Pablo Borysenco on February 12, 2021, 17:06Hello
I checked it. After I disabled my plugin, the shipping method did not appear
Hello
I checked it. After I disabled my plugin, the shipping method did not appear