Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

DHL as shipping module


Recommended Posts

Hello everybody, 


I wonder whether there is a live module (best for 234 bs edge) in existence (even for purchase) which enables to create DHL- shipping labels right out of the admin-area and then provide tracking possiblilites for the user ...?


If not, how do you effectively manage to send your packages with DHL / oscommerce?


Have a nice day



Edited by cupidare
Link to comment
Share on other sites

  • 2 years later...

Hello @philpla

I have a quick and dirty solution that works for me... it's an adaption from an answer at the dev-portal as there is / was no official guide how to use it in php when I needed it. There is a quite interesting work at github https://github.com/Petschko/dhl-php-sdk which deals about this more deeply but as my solution worked for me I never implemented this into my system. 

so goto https://github.com/cupidare/dhl-labels

this applies some changes to orders.php in admin and adds a new file which needs your login/profile information. Please not that every comment is in german. This was never thought as an official module as I am no professional coder. That's why it is far from modular and very basic. 

Additional create a folder where to store the labels (in this case dhl_labels)

The idea is to go to the order in admin, enter the weight of the package and create the label. 

This is based on v.2.2 of the dhl-api. It should still be working despite v3 is available. 



Link to comment
Share on other sites

Hello @cupidare


german is fine ( mother tongue ;) )

i adopt your code to my oscom .... your code was a very good starting point

anywhere i have some questions:

- do you know if there is a function in the dhl-api to get the status/overview of all shipping during last day or so
- #121: $oHeaders = new SoapHeader('http://dhl.de/webservice/cisbase','Authentification', $aCredentials); <- i also tried SSL, didnt work ... do you know why?
- did you test it with dhl-api v3?

again many thx for your help

Link to comment
Share on other sites

It is good, that it was a help.

For the future it would be nice to make a functional module for this. If you want to contribute feel free to do this on github. Regarding your questions: 

- To get access to the status I believe you will need an additional code from dhl to get access to this ... I was considering that in the future but helped me out by collecting the tracking data from the previous shipments (the data is stored in the filename) and then check on dhl...

- I didn't try the https version... I believe they don't change fixed links... but no idea

- I didn't try v3 as it is still working fine


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...