• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/catalogprovider.php
  • Класс: BitrixCatalogProductCatalogProvider
  • Вызов: CatalogProvider::getDefaultStoreId
static function getDefaultStoreId(): int
	{
		$result = parent::getDefaultStoreId();
		if (CatalogConfigState::isUsedInventoryManagement())
		{
			$storeId = CatalogStoreTable::getDefaultStoreId();
			if ($storeId !== null)
			{
				$result = $storeId;
			}
		}

		return $result;
	}