1
0
Fork 0
mirror of synced 2025-04-11 05:00:55 +00:00
Перезапись города при наличии свойства типа LOCATION
This commit is contained in:
Ivan Chaplygin 2023-12-28 10:42:46 +03:00
parent f79fcf4cb5
commit c6a23de68a

View file

@ -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 = '';