DHL Shipping and Currency Switcher, now working together
In the past weeks, we have been working with the team at XAdapter to add support for our WooCommerce Currency Switcher to their DHL Shipping plugin. The target was to make their shipping plugin more flexible, and to make it possible to interact with the shipping calculation process, to ensure the correct calculation of prices in all currencies.
We are happy to inform you that the integration is now complete. Starting from version 3.4.3, the DHL Shipping plugin includes the filters and actions we added in a modified version to make multi-currency support possible. Thanks to this filter, it’s now possible to interact with the shipping plugin and ensure accurate shipping costs. Sounds great? Good! Keep reading to learn how to implement the solution on your site!
Adding multi-currency support to the DHL shipping on your site is a matter of performing three simple steps:
- Update the XAdapter DHL Shipping plugin. Make sure that you are running version 3.4.3 or later.
- Add a simple filter to your theme’s functions.php file, as described in XAdapter’s knowledge base: WooCommerce DHL Express/Paket Shipping Plugin – How to use the DHL shipping plugin with the Currency Switcher plugin. The filter is what allows the DHL plugin and our Currency Switcher to work together, to ensure the accuracy of the shipping calculations.
- Alter the filter you just added, replacing the currency in it with the code of your shop’s base currency. For example, if your base currency is EUR, simply replace the “ZAR” from the example with “EUR”.
You’re now ready to go! The custom filter you just added will tell the DHL Shipping plugin to fetch the shipping costs in your shop’s base currency, and our Currency Switcher will take care of converting them to the correct active currency on the cart page and at checkout.
Should you have any questions about using the DHL Shipping with our Currency Switcher, please contact the XAdapter Support Team. They will be happy to assist you in configuring their shipping plugin on your site.
Thanks for reading, and have a wonderful day!
The Aelia Team