parent
f79fcf4cb5
commit
c6a23de68a
1 changed files with 6 additions and 1 deletions
|
@ -161,8 +161,8 @@ class RetailCrmOrder
|
|||
|
||||
if ($arLoc) {
|
||||
$deliveryLocation = CSaleLocation::GetByID($arLoc['ID']);
|
||||
$order['delivery']['address']['city'] = $deliveryLocation['CITY_NAME'] ?? '';
|
||||
$order['delivery']['address']['region'] = $deliveryLocation['REGION_NAME'] ?? '';
|
||||
$city = $deliveryLocation['CITY_NAME'] ?? null;
|
||||
|
||||
if (count($countryList) > 0 && isset($countryList[$deliveryLocation['COUNTRY_NAME']])) {
|
||||
$order['countryIso'] = $countryList[$deliveryLocation['COUNTRY_NAME']];
|
||||
|
@ -179,6 +179,11 @@ class RetailCrmOrder
|
|||
}
|
||||
}
|
||||
|
||||
//Перезапись города при его наличии в свойстве типа LOCATION
|
||||
if (isset($city)) {
|
||||
$order['delivery']['address']['city'] = $city;
|
||||
}
|
||||
|
||||
// Пункт самовывоза
|
||||
$pickupPointAddress = '';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue