Update DHL Tracking Message based on customer order language.

Using this code snippet you can update DHL Tracking Message based on customer order language.

Just copy and past the snippet in Appearance –> Editor –> fuctions.php

This snippet allows the language to be French.
So the tracking message will be displayed in French.
For another language, you just need to provide the language code and provide the message.

For example, in the above snippet change :
if ($lang == ‘fr’) to if ($lang == ‘de’)
And then change the message “Votre commande a été expédiée le [DATE] via [SERVICE]. Pour suivre l’expédition, suivez le lien d’identité (s) d’expédition [ID]” to German.

Leave a Reply