• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/usestore.php
  • Класс: BitrixCatalogComponentUseStore
  • Вызов: UseStore::catalogIsEmpty
static function catalogIsEmpty(): bool
{
	global $DB;
	$str = "SELECT ID FROM b_catalog_product WHERE QUANTITY > 0 or QUANTITY_RESERVED > 0 limit 1";
	$r = $DB->query($str);

	return !($r->fetch());
}