When we put Hong Kong Address as shipping. Hong Kong address is saved properly. For some time we face this issue, that it's not displaying Shipping Fee.

City as as Hong Kong.

It's already in the Cart & Quote Session may be.


<?xml version="1.0" encoding="UTF-8"?>
<p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes" xmlns:p2="http://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-req.xsd ">
         <Postalcode />
         <City />


<?xml version="1.0" encoding="UTF-8"?>
<res:DCTResponse xmlns:res="http://www.dhl.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-Response.xsd">
            <ConditionData>The destination country HK location postal code  or City  is invalid. Please check the destination country location details.</ConditionData>

So in Hong Kong we don't have Zip Code. But we have put City & it's saved in Magento DB, but it's not passing to DHL API

By clicking on Shipping Address it's calling this AJAX Request


There is something issue with Quote Session, because it's not passing needed info to DHL API



In _buildQuotesRequestXml()

$nodeTo->addChild('City', $rawRequest->getDestCity());

It's not getting value. It always blank for ANY country's city.

It's sometime showing DHL Shipping Fee & sometimes not. It's annonying. Hard to find what's going wrong.

Magento is saying issue is solved in Developer Branch.



How to get fix & apply for now?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.