We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a392746 commit 1a0ecd6Copy full SHA for 1a0ecd6
app/code/Magento/Ups/Model/Carrier.php
@@ -334,6 +334,14 @@ public function setRequest(RateRequest $request)
334
$destCountry = self::GUAM_COUNTRY_ID;
335
}
336
337
+ // For UPS, Las Palmas and Santa Cruz de Tenerife will be represented by Canary Islands country
338
+ if (
339
+ $destCountry == self::SPAIN_COUNTRY_ID &&
340
+ ($request->getDestRegionCode() == self::LAS_PALMAS_REGION_ID || $request->getDestRegionCode() == self::SANTA_CRUZ_DE_TENERIFE_REGION_ID)
341
+ ) {
342
+ $destCountry = self::CANARY_ISLANDS_COUNTRY_ID;
343
+ }
344
+
345
$country = $this->_countryFactory->create()->load($destCountry);
346
$rowRequest->setDestCountry($country->getData('iso2_code') ?: $destCountry);
347
0 commit comments