Skip to content

Commit 0059ff4

Browse files
ENGCOM-3850: Las Palmas and Tenerife should be represented by Canary Islands in UPS #20222
- Merge Pull Request #20222 from duckchip/magento2:canary_islands_in_ups_carrier - Merged commits: 1. 9286183 2. eab5472 3. 204e9d8
2 parents b58af23 + 204e9d8 commit 0059ff4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ public function setRequest(RateRequest $request)
333333
}
334334

335335
// For UPS, Las Palmas and Santa Cruz de Tenerife will be represented by Canary Islands country
336-
if (
337-
$destCountry == self::SPAIN_COUNTRY_ID &&
338-
($request->getDestRegionCode() == self::LAS_PALMAS_REGION_ID || $request->getDestRegionCode() == self::SANTA_CRUZ_DE_TENERIFE_REGION_ID)
336+
if ($destCountry === self::SPAIN_COUNTRY_ID &&
337+
($request->getDestRegionCode() === self::LAS_PALMAS_REGION_ID
338+
|| $request->getDestRegionCode() === self::SANTA_CRUZ_DE_TENERIFE_REGION_ID)
339339
) {
340340
$destCountry = self::CANARY_ISLANDS_COUNTRY_ID;
341341
}
@@ -1708,6 +1708,7 @@ public function getCustomizableContainerTypes()
17081708

17091709
/**
17101710
* Get delivery confirmation level based on origin/destination
1711+
*
17111712
* Return null if delivery confirmation is not acceptable
17121713
*
17131714
* @param string|null $countyDestination

0 commit comments

Comments
 (0)