0

I'm having an issue trying to use DHL plugin in Magento 1.9.

I have introduced all the fields with the DHL information but when I'm trying to buy an item it says:

"This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us."

I've found that I need to switch from Test mode to Live mode but I can't find where I can do that (I'm using production URLs given by DHL).

Regards.

marked as duplicate by sv3n, Siarhey Uchukhlebau, Prince Patel, liyakat, mbalparda Aug 19 '17 at 13:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • what will you enter in shipping address? – Abhishek Panchal Aug 14 '17 at 20:56
  • @AbhishekPanchal I've tried with multiple addresses, but when I click on "Estimate" it gives me that error. (i.e: United States, NY) – AndreX Aug 14 '17 at 21:07
  • Try using different IP address.. May be its networking issue which is blocking DHL response. – Abhishek Panchal Aug 14 '17 at 21:10
  • @AbhishekPanchal I've did that already, from three different locations, even on VPN and the same error occurs. – AndreX Aug 14 '17 at 21:26
0

According to the code, it seems to be using test mode if nothing is specified in Gateway URL field at the admin panel.

Magento DHL Live Mode / Test Mode

// app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl.php:534

     $url = $this->getConfigData('gateway_url');
                    if (!$url) {
                        $url = $this->_defaultGatewayUrl;
                    }

You can see references to this in:

// app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl.php:96::

protected $_defaultGatewayUrl = 'https://eCommerce.airborne.com/ApiLandingTest.asp';

and in:

// app/code/core/Mage/Usa/etc/config.xml:224
  • That's the post I saw before, but the credentials provided by DHL gives both test and production URLs and is what they say every time I ask for help, that I have to use the production one. I'm using the production but for some reason it give me error, as you can see in the answer it says to change from test mode to live mode, not sure if he's referring to a Magento feature or DHL Plugin feature or the URLs given by DHL. – AndreX Aug 14 '17 at 21:30
  • I just updated my answer with some information I found looking at the core files. Hope it helps – diazwatson Aug 14 '17 at 22:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.