DHL Express Rates
-
Hi,
I have DHL Express Commerce plugin to get rates by api.
My shop currency is USD, but DHL api provides rates in RUB. The problem that my website displays shipping prices in RUB. Price just has a $ symbol, but numbers are actually in RUB. As you can see on the screenshot the price 2400.34. That should be about 40USDI found the thread on your website: https://pluginus.net/support/topic/not-converting-dhl-express-commerce-live-shipping-rates/
So, I installed your plugin and added the code to wp-content\plugins\woocommerce-dhlexpress-services\woocommerce-dhlexpress-services.php as you recommended (I just changed currency to ‘RUB’)
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['RUB']) AND $def_currency!=='RUB') { $rate = $currencies['RUB']['rate']; $rate -> {'total_price'} = $rate -> {'total_price'}/ $rate; } } }
But nothing changes. Can you help, please!
Thank you!
The page I need help with: [log in to see the link]
- The topic ‘DHL Express Rates’ is closed to new replies.