Jump to content
cupidare

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

 

cupidare

Edited by cupidare

Share this post


Link to post
Share on other sites

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. 

 

 

Share this post


Link to post
Share on other sites

Hello @cupidare

MANY THX!

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

Share this post


Link to post
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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×