Skip to content

Commit fde44a6

Browse files
author
Viktor Tymchynskyi
committed
MAGETWO-38512: DHL does not return Non-Document shipping methods across EU
- Make internal shipping in EU domestic
1 parent f6c70dd commit fde44a6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/code/Magento/Dhl/Model/Carrier.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,11 @@ protected function _checkDomesticStatus($origCountryCode, $destCountryCode)
19211921
$destCountry = (string)$this->getCountryParams($destCountryCode)->getData('name');
19221922
$isDomestic = (string)$this->getCountryParams($destCountryCode)->getData('domestic');
19231923

1924-
if ($origCountry == $destCountry && $isDomestic) {
1924+
if (($origCountry == $destCountry && $isDomestic)
1925+
|| ($this->_carrierHelper->isCountryInEU($origCountryCode)
1926+
&& $this->_carrierHelper->isCountryInEU($destCountryCode)
1927+
)
1928+
) {
19251929
$this->_isDomestic = true;
19261930
}
19271931

@@ -1964,7 +1968,6 @@ protected function isDutiable($origCountryId, $destCountryId)
19641968

19651969
return
19661970
self::DHL_CONTENT_TYPE_NON_DOC == $this->getConfigData('content_type')
1967-
&& !$this->_isDomestic
1968-
&& !$this->_carrierHelper->isCountryInEU($destCountryId);
1971+
&& !$this->_isDomestic;
19691972
}
19701973
}

0 commit comments

Comments
 (0)