File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/Ups/Model Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -333,9 +333,9 @@ public function setRequest(RateRequest $request)
333
333
}
334
334
335
335
// 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 )
339
339
) {
340
340
$ destCountry = self ::CANARY_ISLANDS_COUNTRY_ID ;
341
341
}
@@ -1708,6 +1708,7 @@ public function getCustomizableContainerTypes()
1708
1708
1709
1709
/**
1710
1710
* Get delivery confirmation level based on origin/destination
1711
+ *
1711
1712
* Return null if delivery confirmation is not acceptable
1712
1713
*
1713
1714
* @param string|null $countyDestination
You can’t perform that action at this time.
0 commit comments