StoreTable - uniqcle/Bitrix GitHub Wiki
StoreTable
- класс для работы с таблицей складов.
https://dev.1c-bitrix.ru/api_d7/bitrix/catalog/storetable/index.php
getList
Выборка всех активных складов
$rsStore = \Bitrix\Catalog\StoreTable::getList(array(
'filter' => array('ACTIVE'>='Y'),
));
while($arStore=$rsStore->fetch()){
print_r($arStore);
}
Выборка всех полей, включая пользовательские, склада и идентификатором в переменной $storeId
$arStore = \Bitrix\Catalog\StoreTable::getList(array(
'filter'=>array('=ID'=>$storeId),
'select'=>array('*','UF_*'),
))->fetch();
Получение информации о складе с идентификатором в переменной $storeId
$arStore = \Bitrix\Catalog\StoreTable::getById($storeId)->fetch();