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

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