• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/usestore.php
  • Класс: BitrixCatalogComponentUseStore
  • Вызов: UseStore::setDefaultCatalogStore
static function setDefaultCatalogStore($storeId): bool
{
	$r = CatalogStoreTable::update(
		$storeId,
		[
			'IS_DEFAULT' => 'Y',
		]
	);

	return $r->isSuccess();
}