array(new \Bitrix\Main\Entity\ExpressionField('CNT', 'COUNT(1)')), 'select' => array('CNT') )); if($loc = $res->fetch()) $count = $loc['CNT']; $res = $con->query("SELECT COUNT(1) AS CNT FROM b_sale_hdale"); if($loc = $res->fetch()) $hndlCount = $loc['CNT']; $res = \Bitrix\Sale\Location\ExternalTable::getList(array( 'filter' => array('=SERVICE_ID' => \Sale\Handlers\Delivery\Additional\Location::getExternalServiceId()), 'runtime' => array(new \Bitrix\Main\Entity\ExpressionField('CNT', 'COUNT(1)')), 'select' => array('CNT') )); if($loc = $res->fetch()) $extCount = $loc['CNT']; ?>
Fatal error: Uncaught Error: Class "Bitrix\Main\Localization\Loc" not found in D:\ktt\ttepla.com\public_html\bitrix\modules\sale\handlers\delivery\additional\location\admin_tab.php:33 Stack trace: #0 {main} thrown in D:\ktt\ttepla.com\public_html\bitrix\modules\sale\handlers\delivery\additional\location\admin_tab.php on line 33