Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / DHL Shipping No Response

DHL Shipping No Response

Locked

Views: 4,200

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
5 Jun 2006, 9:15 PM
#1
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

DHL Shipping No Response

Hello,
I am attempting to use the DHL Shipping mod with 1.3.
I have turned on the debugging and the xml string apprears ok but I am not getting a response from DHL. Does anyone have any suggestions as to what might be happening?

Heather

5 Jun 2006, 10:17 PM
#2
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: DHL Shipping No Response

Heather, did you follow the instruction to register with DHL to get setup?

5 Jun 2006, 11:40 PM
#3
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: DHL Shipping No Response

Yes, I have an account#, key, password, and userid.
I've aslo checked to make sure that cURL with SSL support is active on the server.
Is there anything else I am missing?
Heather

1 Aug 2006, 9:35 PM
#4
bci7 avatar

bci7

New Zenner

Join Date:
Jul 2006
Posts:
16
Plugin Contributions:
0

Re: DHL Shipping No Response

Did you figure out DHL? I want to add to to my shipping estimator like the UPS Estimator is set up. Is this possible? Is there a module?

Thanks
Blain

2 Aug 2006, 3:49 PM
#5
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: DHL Shipping No Response

Yes I did manage to get this module working and it does do the DHL Shipping estimates. - I'm running it with cart version Zen Cart 1.3.0.2.

you can download the module at http://www.dream-scape.com/pub/zencart/DHL_Airborne/

Good luck,
LadyHLG

27 Aug 2006, 2:23 PM
#6
davik1000 avatar

davik1000

New Zenner

Join Date:
Aug 2006
Posts:
28
Plugin Contributions:
0

Re: DHL Shipping No Response

How did you fix it? I'm having this problem, too.

28 Aug 2006, 1:08 PM
#7
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: DHL Shipping No Response

What version of ZenCart are you using and when you turn on the debugging are you getting errors or just no response from DHL?

LadyHLG

28 Aug 2006, 1:12 PM
#8
davik1000 avatar

davik1000

New Zenner

Join Date:
Aug 2006
Posts:
28
Plugin Contributions:
0

Re: DHL Shipping No Response

I'm using zen cart 1.3.0.2 and when I turn on the debugging I wasn't getting a response from DHL. In the settings, I had put my DHL customer ID, password, key and customer number.

I don't know why it's not getting a response back from DHL.

Thanks

28 Aug 2006, 2:06 PM
#9
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: DHL Shipping No Response

Ok, just a quick comment here, this fix actaully came from the osCommerce DHL mod fix so I really don't understand what it does, I just know that it worked for me. For more info you can read the posted info over at OsCommerce in the contribs - download section under 1.401 - Bug fixes.

The authors comments were:

For those of you running PHP5 for windows, with the cURL extension enabled, this will fix no response issues.

What I did was include a necessary file that is found in the precompiled executable version of the official cURL distribution. This file is used for authenticating SSL certificates. If the directions are followed, the SSL certificates from DHL won't be rejected.

Furthermore, I've added a conditional statement, where if an individual doesn't (or can't) follow the directions the SSL verification is skipped.

This should solve any no-response issues people were having.

First I have attached a file that you will need to upload to your server. I placed mine in main cart folder. You can place yours where ever you want just be sure you know the path to the .crt file inside the folder.

Next, in includes\modules\shipping\dhlairborne.php
At about line 451 look for:

// begin cURL engine & execute the request
      if (function_exists('curl_init')) {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, "https://eCommerce.airborne.com/$api");
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, "$request");
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

Just after that and before ```
$airborne_response = curl_exec($ch);

add the following:

//cURL fix
curl_setopt($ch, CURLOPT_CAINFO, 'c:/inetpub/wwwroot/test/cart/bin1/curl-ca-bundle.crt');


Where **'c:/inetpub/wwwroot/test/cart/bin1/curl-ca-bundle.crt'** is the path to your .crt file.

Thats it! I tested this with a fresh install of 1.3.0.2 and it worked for me.
I hope these directions are clear enough, its a Monday morning and my brain is still a bit foggy.

LadyHLG
21 Dec 2006, 5:54 AM
#10
signagen avatar

signagen

New Zenner

Join Date:
Jun 2006
Posts:
18
Plugin Contributions:
0

Re: DHL Shipping No Response

I have the same problem right now. DHL shipping module fails to work recently after ISP upgrades PHP to 4.4.4 It seems that your site is local not in a server. My website was installed in a server a year ago. DHL Module and LinkPoint always work well until recently. Can you do me a favor and tell me how I can fix the problem? Many many thanks

Jeff

21 Dec 2006, 2:05 PM
#11
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: DHL Shipping No Response

Jeff did you read through the instructions in the above post? Its not too difficult and shouldn't take too long to test out.
I'm afraid that is all the info I have at this point.
LadyHLG

22 Dec 2006, 5:30 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: DHL Shipping No Response

signagen:

My website was installed in a server a year ago. DHL Module and LinkPoint always work well until recently.

"...until recently..." <--- suggests that your host has busted something in their CURL configuration.

15 Feb 2007, 8:48 PM
#13
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

Re: DHL Shipping No Response

I just installed this mod on a 1.3.7 cart.
Everything appears to be working fine EXCEPT it doesn't show up unless you are logged in.

I'm assuming the fix listed on page 1 is to correct this, but I have a couple of questions...

  1. What/where is my 'main cart folder'
  2. What/where is my '.crt file'

I know these are dumb questions, so I apologize for my ignorance in advance. :blush: :laugh:

Thanks for the help!

16 Feb 2007, 4:05 AM
#14
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: DHL Shipping No Response

Actually, the fix from the beginning of the post will not correct this. I think that DHL requires a full address to calculate shipping so you wont get any shipping totals until the customer is logged in, but you may want to check with the mod's creator or with DHL directly to verify.
LadyHLG

16 Feb 2007, 5:36 PM
#15
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

Re: DHL Shipping No Response

LadyHLG:

Actually, the fix from the beginning of the post will not correct this. I think that DHL requires a full address to calculate shipping so you wont get any shipping totals until the customer is logged in, but you may want to check with the mod's creator or with DHL directly to verify.
LadyHLG

Thanks for the response LadyHLG!

The mod worked like a charm without any modifications on my 1.3.7 site.
If I remember correctly, it didn't estimate shipping unless you were logged in on my older site either. Seems like I vaguely remember there being a fix for this, but I just never bothered with it before. So...I just assumed this was it.

No biggy anyway. I just put a little note at the top of the checkout page explaining it wouldn't show up until they were logged in.

Thanks again! :smile: