1
0
mirror of synced 2024-11-22 05:16:09 +03:00

+getLocationCityId

This commit is contained in:
Grisha Pomadchin 2013-09-17 19:02:19 +04:00
parent 622dd0e56c
commit e13fddda75

View File

@ -749,4 +749,19 @@ class ICrmOrderActions
));
}
}
public static function getLocationCityId($cityName) {
if(!$cityName)
return;
$dbLocation = CSaleLocation::GetList(
array(
"SORT" => "ASC",
"CITY_NAME_LANG" => "ASC"
),
array("LID" => "ru", "CITY_NAME" => $cityName), false, false, array());
if($location = $dbLocation->Fetch())
return $location['ID'];
}
}