• Как исправить ошибку при переходе на php8 Битрикс?

    @juli_zzz Автор вопроса
    function ExecuteModuleEventEx($arEvent, $arParams = array())
    {
    	$r = true;
    
    	if(
    		isset($arEvent["TO_MODULE_ID"])
    		&& $arEvent["TO_MODULE_ID"]<>""
    		&& $arEvent["TO_MODULE_ID"]<>"main"
    	)
    	{
    		if(!CModule::IncludeModule($arEvent["TO_MODULE_ID"]))
    			return null;
    	}
    	elseif(
    		isset($arEvent["TO_PATH"])
    		&& $arEvent["TO_PATH"]<>""
    		&& file_exists($_SERVER["DOCUMENT_ROOT"].BX_ROOT.$arEvent["TO_PATH"])
    	)
    	{
    		$r = include_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT.$arEvent["TO_PATH"]);
    	}
    	elseif(
    		isset($arEvent["FULL_PATH"])
    		&& $arEvent["FULL_PATH"]<>""
    		&& file_exists($arEvent["FULL_PATH"])
    	)
    	{
    		$r = include_once($arEvent["FULL_PATH"]);
    	}
    
    	if(array_key_exists("CALLBACK", $arEvent))
    	{
    		//TODO: Возможно заменить на EventManager::getInstance()->getLastEvent();
    		global $BX_MODULE_EVENT_LAST;
    		$BX_MODULE_EVENT_LAST = $arEvent;
    
    		if(isset($arEvent["TO_METHOD_ARG"]) && is_array($arEvent["TO_METHOD_ARG"]) && count($arEvent["TO_METHOD_ARG"]))
    			$args = array_merge($arEvent["TO_METHOD_ARG"], $arParams);
    		else
    			$args = $arParams;
    
    		return call_user_func_array($arEvent["CALLBACK"], $args);
    	}
    	elseif($arEvent["TO_CLASS"] != "" && $arEvent["TO_METHOD"] != "")
    	{
    		//TODO: Возможно заменить на EventManager::getInstance()->getLastEvent();
    		global $BX_MODULE_EVENT_LAST;
    		$BX_MODULE_EVENT_LAST = $arEvent;
    
    		if(is_array($arEvent["TO_METHOD_ARG"]) && count($arEvent["TO_METHOD_ARG"]))
    			$args = array_merge($arEvent["TO_METHOD_ARG"], $arParams);
    		else
    			$args = $arParams;
    
    		//php bug: http://bugs.php.net/bug.php?id=47948
    		if (class_exists($arEvent["TO_CLASS"]) && is_callable([$arEvent["TO_CLASS"], $arEvent["TO_METHOD"]]))
    		{
    			return call_user_func_array([$arEvent["TO_CLASS"], $arEvent["TO_METHOD"]], $args);
    		}
    
    		$exception = new SystemException("Event handler error: could not invoke {$arEvent["TO_CLASS"]}::{$arEvent["TO_METHOD"]}. Class or method does not exist.");
    		$application = \Bitrix\Main\Application::getInstance();
    		$exceptionHandler = $application->getExceptionHandler();
    		$exceptionHandler->writeToLog($exception);
    
    		return null;
    	}
    	else
    	{
    		return $r;
    	}
    }
    
    function UnRegisterModuleDependences($FROM_MODULE_ID, $MESSAGE_ID, $TO_MODULE_ID, $TO_CLASS="", $TO_METHOD="", $TO_PATH="", $TO_METHOD_ARG = array())
    {
    	$eventManager = \Bitrix\Main\EventManager::getInstance();
    	$eventManager->unRegisterEventHandler($FROM_MODULE_ID, $MESSAGE_ID, $TO_MODULE_ID, $TO_CLASS, $TO_METHOD, $TO_PATH, $TO_METHOD_ARG);
    }
    
    function RegisterModuleDependences($FROM_MODULE_ID, $MESSAGE_ID, $TO_MODULE_ID, $TO_CLASS="", $TO_METHOD="", $SORT=100, $TO_PATH="", $TO_METHOD_ARG = array())
    {
    	$eventManager = \Bitrix\Main\EventManager::getInstance();
    	$eventManager->registerEventHandlerCompatible($FROM_MODULE_ID, $MESSAGE_ID, $TO_MODULE_ID, $TO_CLASS, $TO_METHOD, $SORT, $TO_PATH, $TO_METHOD_ARG);
    }
    
    function IsModuleInstalled($module_id)
    {
    	return \Bitrix\Main\ModuleManager::isModuleInstalled($module_id);
    }
    
    function GetModuleID($str)
    {
    	$arr = explode("/",$str);
    	$i = array_search("modules",$arr);
    	return $arr[$i+1];
    }
    
    /**
     * Returns TRUE if version1 >= version2
     * version1 = "XX.XX.XX"
     * version2 = "XX.XX.XX"
     */
    function CheckVersion($version1, $version2)
    {
    	$arr1 = explode(".",$version1);
    	$arr2 = explode(".",$version2);
    	if (intval($arr2[0])>intval($arr1[0])) return false;
    	elseif (intval($arr2[0])<intval($arr1[0])) return true;
    	else
    	{
    		if (intval($arr2[1])>intval($arr1[1])) return false;
    		elseif (intval($arr2[1])<intval($arr1[1])) return true;
    		else
    		{
    			if (intval($arr2[2])>intval($arr1[2])) return false;
    			elseif (intval($arr2[2])<intval($arr1[2])) return true;
    			else return true;
    		}
    	}
    }
  • Как исправить ошибку при переходе на php8 Битрикс?

    @juli_zzz Автор вопроса
    Дмитрий, скидываю весь код
    <?php
    /**
     * Bitrix Framework
     * @package bitrix
     * @subpackage main
     * @copyright 2001-2013 Bitrix
     */
    
    use Bitrix\Main\SystemException;
    
    define("MODULE_NOT_FOUND", 0);
    define("MODULE_INSTALLED", 1);
    define("MODULE_DEMO", 2);
    define("MODULE_DEMO_EXPIRED", 3);
    
    class CModule
    {
    	var $MODULE_NAME;
    	var $MODULE_DESCRIPTION;
    	var $MODULE_VERSION;
    	var $MODULE_VERSION_DATE;
    	var $MODULE_ID;
    	var $MODULE_SORT = 10000;
    	var $SHOW_SUPER_ADMIN_GROUP_RIGHTS;
    	var $MODULE_GROUP_RIGHTS;
    	var $PARTNER_NAME;
    	var $PARTNER_URI;
    
    	public static function AddAutoloadClasses($module, $arParams = array())
    	{
    		if ($module === '')
    			$module = null;
    
    		\Bitrix\Main\Loader::registerAutoLoadClasses($module, $arParams);
    		return true;
    	}
    
    	public static function _GetCache()
    	{
    		return \Bitrix\Main\ModuleManager::getInstalledModules();
    	}
    
    	function InstallDB()
    	{
    		return false;
    	}
    
    	function UnInstallDB()
    	{
    	}
    
    	function InstallEvents()
    	{
    	}
    
    	function UnInstallEvents()
    	{
    	}
    
    	function InstallFiles()
    	{
    	}
    
    	function UnInstallFiles()
    	{
    	}
    
    	function DoInstall()
    	{
    	}
    
    	public function GetModuleTasks()
    	{
    		return array(
    			/*
    			"NAME" => array(
    				"LETTER" => "",
    				"BINDING" => "",
    				"OPERATIONS" => array(
    					"NAME",
    					"NAME",
    				),
    			),
    			*/
    		);
    	}
    
    	public function InstallTasks()
    	{
    		global $DB, $CACHE_MANAGER;
    
    		$sqlMODULE_ID = $DB->ForSQL($this->MODULE_ID, 50);
    
    		$arDBOperations = array();
    		$rsOperations = $DB->Query("SELECT NAME FROM b_operation WHERE MODULE_ID = '$sqlMODULE_ID'");
    		while($ar = $rsOperations->Fetch())
    			$arDBOperations[$ar["NAME"]] = $ar["NAME"];
    
    		$arDBTasks = array();
    		$rsTasks = $DB->Query("SELECT NAME FROM b_task WHERE MODULE_ID = '$sqlMODULE_ID' AND SYS = 'Y'");
    		while($ar = $rsTasks->Fetch())
    			$arDBTasks[$ar["NAME"]] = $ar["NAME"];
    
    		$arModuleTasks = $this->GetModuleTasks();
    		foreach($arModuleTasks as $task_name => $arTask)
    		{
    			$sqlBINDING = isset($arTask["BINDING"]) && $arTask["BINDING"] <> ''? $DB->ForSQL($arTask["BINDING"], 50): 'module';
    			$sqlTaskOperations = array();
    
    			if(isset($arTask["OPERATIONS"]) && is_array($arTask["OPERATIONS"]))
    			{
    				foreach($arTask["OPERATIONS"] as $operation_name)
    				{
    					$operation_name = mb_substr($operation_name, 0, 50);
    
    					if(!isset($arDBOperations[$operation_name]))
    					{
    						$DB->Query("
    							INSERT INTO b_operation
    							(NAME, MODULE_ID, BINDING)
    							VALUES
    							('".$DB->ForSQL($operation_name)."', '$sqlMODULE_ID', '$sqlBINDING')
    						", false, "FILE: ".__FILE__."<br> LINE: ".__LINE__);
    
    						$arDBOperations[$operation_name] = $operation_name;
    					}
    
    					$sqlTaskOperations[] = $DB->ForSQL($operation_name);
    				}
    			}
    
    			$task_name = mb_substr($task_name, 0, 100);
    			$sqlTaskName = $DB->ForSQL($task_name);
    
    			if(!isset($arDBTasks[$task_name]) && $task_name <> '')
    			{
    				$DB->Query("
    					INSERT INTO b_task
    					(NAME, LETTER, MODULE_ID, SYS, BINDING)
    					VALUES
    					('$sqlTaskName', '".$DB->ForSQL($arTask["LETTER"], 1)."', '$sqlMODULE_ID', 'Y', '$sqlBINDING')
    				", false, "FILE: ".__FILE__."<br> LINE: ".__LINE__);
    			}
    
    			if(!empty($sqlTaskOperations) && $task_name <> '')
    			{
    				$DB->Query("
    					INSERT INTO b_task_operation
    					(TASK_ID,OPERATION_ID)
    					SELECT T.ID TASK_ID, O.ID OPERATION_ID
    					FROM
    						b_task T
    						,b_operation O
    					WHERE
    						T.SYS='Y'
    						AND T.NAME='$sqlTaskName'
    						AND O.NAME in ('".implode("','", $sqlTaskOperations)."')
    						AND O.NAME not in (
    							SELECT O2.NAME
    							FROM
    								b_task T2
    								inner join b_task_operation TO2 on TO2.TASK_ID = T2.ID
    								inner join b_operation O2 on O2.ID = TO2.OPERATION_ID
    							WHERE
    								T2.SYS='Y'
    								AND T2.NAME='$sqlTaskName'
    						)
    				", false, "FILE: ".__FILE__."<br> LINE: ".__LINE__);
    			}
    		}
    
    		if(is_object($CACHE_MANAGER))
    		{
    			$CACHE_MANAGER->CleanDir("b_task");
    			$CACHE_MANAGER->CleanDir("b_task_operation");
    		}
    	}
    
    	public function UnInstallTasks()
    	{
    		global $DB, $CACHE_MANAGER;
    
    		$sqlMODULE_ID = $DB->ForSQL($this->MODULE_ID, 50);
    
    		$DB->Query("
    			DELETE FROM b_group_task
    			WHERE TASK_ID IN (
    				SELECT T.ID
    				FROM b_task T
    				WHERE T.MODULE_ID = '$sqlMODULE_ID'
    			)
    		", false, "File: ".__FILE__."<br>Line: ".__LINE__);
    
    		$DB->Query("
    			DELETE FROM b_task_operation
    			WHERE TASK_ID IN (
    				SELECT T.ID
    				FROM b_task T
    				WHERE T.MODULE_ID = '$sqlMODULE_ID')
    		", false, "File: ".__FILE__."<br>Line: ".__LINE__);
    
    		$DB->Query("
    			DELETE FROM b_operation
    			WHERE MODULE_ID = '$sqlMODULE_ID'
    		", false, "File: ".__FILE__."<br>Line: ".__LINE__);
    
    		$DB->Query("
    			DELETE FROM b_task
    			WHERE MODULE_ID = '$sqlMODULE_ID'
    		", false, "File: ".__FILE__."<br>Line: ".__LINE__);
    
    		if(is_object($CACHE_MANAGER))
    		{
    			$CACHE_MANAGER->CleanDir("b_task");
    			$CACHE_MANAGER->CleanDir("b_task_operation");
    		}
    	}
    
    	function IsInstalled()
    	{
    		return \Bitrix\Main\ModuleManager::isModuleInstalled($this->MODULE_ID);
    	}
    
    	function DoUninstall()
    	{
    	}
    
    	function Remove()
    	{
    		\Bitrix\Main\ModuleManager::delete($this->MODULE_ID);
    	}
    
    	function Add()
    	{
    		\Bitrix\Main\ModuleManager::add($this->MODULE_ID);
    	}
    
    	public static function GetList()
    	{
    		$result = new CDBResult;
    		$result->InitFromArray(CModule::_GetCache());
    		return $result;
    	}
    
    	/**
    	 * Makes module classes and function available. Returns true on success.
    	 *
    	 * @param string $module_name
    	 * @return bool
    	 */
    	public static function IncludeModule($module_name)
    	{
    		return \Bitrix\Main\Loader::includeModule($module_name);
    	}
    
    	public static function IncludeModuleEx($module_name)
    	{
    		return \Bitrix\Main\Loader::includeSharewareModule($module_name);
    	}
    
    	public static function err_mess()
    	{
    		return "<br>Class: CModule;<br>File: ".__FILE__;
    	}
    
    	public static function GetDropDownList($strSqlOrder="ORDER BY ID")
    	{
    		global $DB;
    		$err_mess = (CModule::err_mess())."<br>Function: GetDropDownList<br>Line: ";
    		$strSql = "
    			SELECT
    				ID as REFERENCE_ID,
    				ID as REFERENCE
    			FROM
    				b_module
    			$strSqlOrder
    			";
    		$res = $DB->Query($strSql, false, $err_mess.__LINE__);
    		return $res;
    	}
    
    	/**
    	 * @param string $moduleId
    	 * @return CModule|bool
    	 */
    	public static function CreateModuleObject($moduleId)
    	{
    		$moduleId = trim($moduleId);
    		$moduleId = preg_replace("/[^a-zA-Z0-9_.]+/i", "", $moduleId);
    		if ($moduleId == '')
    			return false;
    
    		$path = getLocalPath("modules/".$moduleId."/install/index.php");
    		if ($path === false)
    			return false;
    
    		include_once($_SERVER["DOCUMENT_ROOT"].$path);
    
    		$className = str_replace(".", "_", $moduleId);
    		if (!class_exists($className))
    			return false;
    
    		return new $className;
    	}
    }
    
    function RegisterModule($id)
    {
    	\Bitrix\Main\ModuleManager::registerModule($id);
    }
    
    function UnRegisterModule($id)
    {
    	\Bitrix\Main\ModuleManager::unRegisterModule($id);
    }
    
    function AddEventHandler($FROM_MODULE_ID, $MESSAGE_ID, $CALLBACK, $SORT=100, $FULL_PATH = false)
    {
    	$eventManager = \Bitrix\Main\EventManager::getInstance();
    	return $eventManager->addEventHandlerCompatible($FROM_MODULE_ID, $MESSAGE_ID, $CALLBACK, $FULL_PATH, $SORT);
    }
    
    function RemoveEventHandler($FROM_MODULE_ID, $MESSAGE_ID, $iEventHandlerKey)
    {
    	$eventManager = \Bitrix\Main\EventManager::getInstance();
    	return $eventManager->removeEventHandler($FROM_MODULE_ID, $MESSAGE_ID, $iEventHandlerKey);
    }
    
    function GetModuleEvents($MODULE_ID, $MESSAGE_ID, $bReturnArray = false)
    {
    	$eventManager = \Bitrix\Main\EventManager::getInstance();
    	$arrResult = $eventManager->findEventHandlers($MODULE_ID, $MESSAGE_ID);
    
    	foreach($arrResult as $k => $event)
    	{
    		$arrResult[$k]['FROM_MODULE_ID'] = $MODULE_ID;
    		$arrResult[$k]['MESSAGE_ID'] = $MESSAGE_ID;
    	}
    
    	if($bReturnArray)
    	{
    		return $arrResult;
    	}
    	else
    	{
    		$resRS = new CDBResult;
    		$resRS->InitFromArray($arrResult);
    		return $resRS;
    	}
    }
    
    /**
     * @param $arEvent
     * @param null $param1
     * @param null $param2
     * @param null $param3
     * @param null $param4
     * @param null $param5
     * @param null $param6
     * @param null $param7
     * @param null $param8
     * @param null $param9
     * @param null $param10
     * @return bool|mixed|null
     *
     * @deprecated
     */
    function ExecuteModuleEvent($arEvent, $param1=null, $param2=null, $param3=null, $param4=null, $param5=null, $param6=null, $param7=null, $param8=null, $param9=null, $param10=null)
    {
    	$CNT_PREDEF = 10;
    	$r = true;
    	if(!empty($arEvent["TO_MODULE_ID"]) && $arEvent["TO_MODULE_ID"] <> 'main')
    	{
    		if(!CModule::IncludeModule($arEvent["TO_MODULE_ID"]))
    			return null;
    		$r = include_once($_SERVER["DOCUMENT_ROOT"].getLocalPath("modules/".$arEvent["TO_MODULE_ID"]."/include.php"));
    	}
    	elseif(!empty($arEvent["TO_PATH"]) && file_exists($_SERVER["DOCUMENT_ROOT"].BX_ROOT.$arEvent["TO_PATH"]))
    	{
    		$r = include_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT.$arEvent["TO_PATH"]);
    	}
    	elseif(!empty($arEvent["FULL_PATH"]) && file_exists($arEvent["FULL_PATH"]))
    	{
    		$r = include_once($arEvent["FULL_PATH"]);
    	}
    
    	if((empty($arEvent["TO_CLASS"]) || empty($arEvent["TO_METHOD"])) && !is_set($arEvent, "CALLBACK"))
    		return $r;
    
    	$args = array();
    	if (isset($arEvent["TO_METHOD_ARG"]) && is_array($arEvent["TO_METHOD_ARG"]) && !empty($arEvent["TO_METHOD_ARG"]))
    	{
    		foreach ($arEvent["TO_METHOD_ARG"] as $v)
    			$args[] = $v;
    	}
    
    	$nArgs = func_num_args();
    	for($i = 1; $i <= $CNT_PREDEF; $i++)
    	{
    		if($i > $nArgs)
    			break;
    		$args[] = &${"param".$i};
    	}
    
    	for($i = $CNT_PREDEF + 1; $i < $nArgs; $i++)
    		$args[] = func_get_arg($i);
    
    	//TODO: Возможно заменить на EventManager::getInstance()->getLastEvent();
    	global $BX_MODULE_EVENT_LAST;
    	$BX_MODULE_EVENT_LAST = $arEvent;
    
    	if(is_set($arEvent, "CALLBACK"))
    	{
    		$resmod = call_user_func_array($arEvent["CALLBACK"], $args);
    	}
    	else
    	{
    		//php bug: http://bugs.php.net/bug.php?id=47948
    		class_exists($arEvent["TO_CLASS"]);
    		$resmod = call_user_func_array(array($arEvent["TO_CLASS"], $arEvent["TO_METHOD"]), $args);
    	}
    
    	return $resmod;
    }
  • При переходе на php8 Битрикс как обойти ошибку [TypeError] Cannot access offset of type string on string (0)?

    @juli_zzz Автор вопроса
    Спасибо большое за помощь!
    Не поможете еще с одним вопросом? На этой странице rabota-kolpino.ru/vacancy авторизованный пользователь не видит часть компонентов
    https://disk.yandex.ru/i/yFj3h5WGmCqJig.
    Ошибка не отображается. Как узнать, что там за ошибка?
  • Как добавить поля в почтовое событие в Битрикс?

    @juli_zzz Автор вопроса
    PetrPo, снова вас потревожу)
    После добавления вашего кода вылезает ошибка при попытке пользователями восстановить пароль
    633af8161236d800669203.jpeg
  • Как добавить поля в почтовое событие в Битрикс?

    @juli_zzz Автор вопроса
    PetrPo, спасибо большое, добрый человек. Всё получилось)
  • Как добавить поля в почтовое событие в Битрикс?

    @juli_zzz Автор вопроса
    PetrPo,
    При регистрации компании на сайте пользователю приходит письмо на почту. При редактировании шаблона этого письма доступны следующие макросы:
    #EMAIL# - адрес пользователя
    #ELEMENT_ID# - id элемента
    #ELEMENT_NAME# - название элемента
    #LINK_VIEW# - ссылка на просмотр
    #LINK_EDIT# - ссылка редактирование
    #ADMINS_EMAIL_LIST# - список админов для рассылки.

    Поскольку мы изменили адреса страниц элементов инфоблока с element id на element code, мне нужно в шаблоне передать корректную ссылку. В макросе #LINK_VIEW# передается ссылка с element id.

    Нашла в интернете информацию, как перехватить это почтовое событие. Перехватить событие получилось, код выше скинула.
    При таком написании получаю в письме текст "/company/$CODE".
    То есть нужно как-то вытащить element code, но моих знаний не достаточно)
  • Как массово изменить свойство "Внешний код:" и присвоить ему значение id в 1с битрикс?

    @juli_zzz
    И мне помогло! Спасибо за супер решение.
    Провела ту же операцию в обратную сторону: свойству ID присвоила значение из XML_ID
  • Как настроить ЧПУ в инфоблоке Битрикс на самописном компоненте?

    @juli_zzz Автор вопроса
    scottparker, простите за возможно глупые вопросы, я контент-менеджер и не всё улавливаю) что нужно сделать?
  • Как настроить ЧПУ в инфоблоке Битрикс на самописном компоненте?

    @juli_zzz Автор вопроса
    scottparker, на странице element.php подключается компонент детального просмотра:

    <?$APPLICATION->IncludeComponent("bitrix:news.detail", "company_detail", array(
    "IBLOCK_TYPE" => "vacancy",
    "IBLOCK_ID" => "5",
    "ELEMENT_ID" => $_REQUEST["ID"],
    "ELEMENT_CODE" => "",
    "CHECK_DATES" => "Y",
    "FIELD_CODE" => array(0 => "DETAIL_PICTURE",
    1 => 'SHOW_COUNTER'),
    "PROPERTY_CODE" => array(
    0 => "ADDRESS",
    1 => "COORDINATES",
    2 => "PHONE",
    3 => "FAX",
    4 => "SITE",
    5 => "EMAIL",
    6 => "FORUM_MESSAGE_CNT"),
    "IBLOCK_URL" => "",
    "AJAX_MODE" => "N",
    "AJAX_OPTION_JUMP" => "N",
    "AJAX_OPTION_STYLE" => "Y",
    "AJAX_OPTION_HISTORY" => "N",
    "CACHE_TYPE" => "A",
    "CACHE_TIME" => "36000000",
    "CACHE_GROUPS" => "Y",
    "META_KEYWORDS" => "KEYWORDS",
    "META_DESCRIPTION" => "DESCRIPTION",
    "BROWSER_TITLE" => "NAME",
    "SET_TITLE" => "Y",
    "SET_STATUS_404" => "N",
    "INCLUDE_IBLOCK_INTO_CHAIN" => "Y",
    "ADD_SECTIONS_CHAIN" => "Y",
    "ACTIVE_DATE_FORMAT" => "d.m.Y",
    "USE_PERMISSIONS" => "N",
    "DISPLAY_TOP_PAGER" => "N",
    "DISPLAY_BOTTOM_PAGER" => "Y",
    "PAGER_TITLE" => "",
    "PAGER_TEMPLATE" => "",
    "PAGER_SHOW_ALL" => "N",
    "DISPLAY_DATE" => "Y",
    "DISPLAY_NAME" => "Y",
    "DISPLAY_PICTURE" => "Y",
    "DISPLAY_PREVIEW_TEXT" => "Y",
    "USE_SHARE" => "N",
    "AJAX_OPTION_ADDITIONAL" => ""
    ),
    false
    );?>
  • Как настроить ЧПУ в инфоблоке Битрикс на самописном компоненте?

    @juli_zzz Автор вопроса
    Ярослав Александров, а как разместить в комплексном компоненте bitrix:news ?
  • Битрикс не отображаются разделы каталога, как исправить?

    @juli_zzz Автор вопроса
    "desc,char,stores,video,reviews,buy,payment,delivery,custom_tab",
    		"DETAIL_BLOCKS_ALL_ORDER" => "complect,goods,nabor,offers,desc,char,buy,payment,delivery,video,stores,custom_tab,services,news,blog,reviews,staff,vacancy,gifts",
    		"DELIVERY_CALC" => "Y",
    		"DELIVERY_CALC_NAME" => "",
    		"ASK_TAB" => "",
    		"TAB_NEWS_NAME" => "",
    		"TAB_STAFF_NAME" => "",
    		"TAB_VACANCY_NAME" => "",
    		"STAFF_VIEW_TYPE" => "staff_block",
    		"SECTION_TYPE_VIEW" => "FROM_MODULE",
    		"SHOW_BUY_DELIVERY" => "Y",
    		"TITLE_BUY_DELIVERY" => "Оплата и доставка",
    		"BLOG_URL" => "catalog_comments",
    		"SHOW_MORE_SUBSECTIONS" => "Y",
    		"SHOW_SIDE_BLOCK_LAST_LEVEL" => "N",
    		"SHOW_SORT_IN_FILTER" => "Y",
    		"SUBSECTION_PREVIEW_PROPERTY" => "DESCRIPTION",
    		"SHOW_SUBSECTION_DESC" => "Y",
    		"USE_CUSTOM_RESIZE" => "N",
    		"LINKED_ELEMENT_TAB_SORT_FIELD" => "sort",
    		"LINKED_ELEMENT_TAB_SORT_ORDER" => "asc",
    		"LINKED_ELEMENT_TAB_SORT_FIELD2" => "id",
    		"LINKED_ELEMENT_TAB_SORT_ORDER2" => "desc",
    		"DETAIL_BLOG_EMAIL_NOTIFY" => "Y",
    		"MAX_IMAGE_SIZE" => "0.5",
    		"BIGDATA_SHOW_FROM_SECTION" => "N",
    		"DISCOUNT_PERCENT_POSITION" => "bottom-right",
    		"SEARCH_PAGE_RESULT_COUNT" => "50",
    		"SEARCH_RESTART" => "N",
    		"SEARCH_NO_WORD_LOGIC" => "Y",
    		"SEARCH_USE_LANGUAGE_GUESS" => "Y",
    		"SEARCH_CHECK_DATES" => "Y",
    		"DETAIL_SHOW_POPULAR" => "Y",
    		"DETAIL_SHOW_VIEWED" => "Y",
    		"LANDING_SECTION_COUNT_MOBILE" => "3",
    		"LANDING_SEARCH_COUNT_MOBILE" => "3",
    		"USE_BIG_DATA_IN_SEARCH" => "N",
    		"TAB_BUY_SERVICES_NAME" => "",
    		"COUNT_SERVICES_IN_ANNOUNCE" => "2",
    		"SHOW_ALL_SERVICES_IN_SLIDE" => "N",
    		"SEF_URL_TEMPLATES" => array(
    			"sections" => "",
    			"section" => "#SECTION_CODE_PATH#/",
    			"element" => "#SECTION_CODE_PATH#/#ELEMENT_ID#/",
    			"compare" => "compare.php?action=#ACTION_CODE#",
    			"smart_filter" => "#SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/apply/",
    		),
    		"VARIABLE_ALIASES" => array(
    			"compare" => array(
    				"ACTION_CODE" => "action",
    			),
    		)
    	),
    	false
    );?><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
  • Битрикс не отображаются разделы каталога, как исправить?

    @juli_zzz Автор вопроса
    "USE_BIG_DATA" => "Y",
    		"BIG_DATA_RCM_TYPE" => "bestsell",
    		"SHOW_DISCOUNT_PERCENT" => "Y",
    		"SHOW_OLD_PRICE" => "Y",
    		"VIEWED_ELEMENT_COUNT" => "20",
    		"VIEWED_BLOCK_TITLE" => "Ранее вы смотрели",
    		"ELEMENT_SORT_FIELD_BOX" => "name",
    		"ELEMENT_SORT_ORDER_BOX" => "asc",
    		"ELEMENT_SORT_FIELD_BOX2" => "id",
    		"ELEMENT_SORT_ORDER_BOX2" => "desc",
    		"ADD_PICT_PROP" => "-",
    		"OFFER_ADD_PICT_PROP" => "MORE_PHOTO",
    		"MAX_GALLERY_ITEMS" => "5",
    		"SHOW_GALLERY" => "Y",
    		"SHOW_PROPS" => "Y",
    		"DETAIL_ADD_DETAIL_TO_SLIDER" => "Y",
    		"SKU_DETAIL_ID" => "oid",
    		"USE_MAIN_ELEMENT_SECTION" => "Y",
    		"SET_LAST_MODIFIED" => "Y",
    		"PAGER_BASE_LINK_ENABLE" => "N",
    		"SHOW_404" => "Y",
    		"MESSAGE_404" => "",
    		"AJAX_FILTER_CATALOG" => "Y",
    		"AJAX_CONTROLS" => "Y",
    		"SECTION_BACKGROUND_IMAGE" => "-",
    		"DETAIL_BACKGROUND_IMAGE" => "-",
    		"DISPLAY_ELEMENT_SLIDER" => "10",
    		"SHOW_ONE_CLICK_BUY" => "Y",
    		"USE_GIFTS_DETAIL" => "Y",
    		"USE_GIFTS_SECTION" => "Y",
    		"USE_GIFTS_MAIN_PR_SECTION_LIST" => "Y",
    		"GIFTS_DETAIL_PAGE_ELEMENT_COUNT" => "8",
    		"GIFTS_DETAIL_HIDE_BLOCK_TITLE" => "N",
    		"GIFTS_DETAIL_BLOCK_TITLE" => "Выберите один из подарков",
    		"GIFTS_DETAIL_TEXT_LABEL_GIFT" => "Подарок",
    		"GIFTS_SECTION_LIST_PAGE_ELEMENT_COUNT" => "3",
    		"GIFTS_SECTION_LIST_HIDE_BLOCK_TITLE" => "N",
    		"GIFTS_SECTION_LIST_BLOCK_TITLE" => "Подарки к товарам этого раздела",
    		"GIFTS_SECTION_LIST_TEXT_LABEL_GIFT" => "Подарок",
    		"GIFTS_SHOW_DISCOUNT_PERCENT" => "Y",
    		"GIFTS_SHOW_OLD_PRICE" => "Y",
    		"GIFTS_SHOW_NAME" => "Y",
    		"GIFTS_SHOW_IMAGE" => "Y",
    		"GIFTS_MESS_BTN_BUY" => "Выбрать",
    		"GIFTS_MAIN_PRODUCT_DETAIL_PAGE_ELEMENT_COUNT" => "4",
    		"GIFTS_MAIN_PRODUCT_DETAIL_HIDE_BLOCK_TITLE" => "N",
    		"GIFTS_MAIN_PRODUCT_DETAIL_BLOCK_TITLE" => "Выберите один из товаров, чтобы получить подарок",
    		"OFFER_HIDE_NAME_PROPS" => "N",
    		"DISABLE_INIT_JS_IN_COMPONENT" => "N",
    		"DETAIL_SET_VIEWED_IN_COMPONENT" => "N",
    		"SECTION_PREVIEW_DESCRIPTION" => "Y",
    		"SECTIONS_LIST_PREVIEW_DESCRIPTION" => "Y",
    		"SALE_STIKER" => "SALE_TEXT",
    		"SHOW_DISCOUNT_TIME" => "Y",
    		"SHOW_RATING" => "N",
    		"COMPOSITE_FRAME_MODE" => "A",
    		"COMPOSITE_FRAME_TYPE" => "AUTO",
    		"DETAIL_OFFERS_LIMIT" => "0",
    		"DETAIL_EXPANDABLES_TITLE" => "С этим товаром покупают",
    		"DETAIL_ASSOCIATED_TITLE" => "Вам также может понравиться",
    		"DETAIL_LINKED_GOODS_SLIDER" => "Y",
    		"DETAIL_LINKED_GOODS_TABS" => "Y",
    		"DETAIL_PICTURE_MODE" => "MAGNIFIER",
    		"SHOW_UNABLE_SKU_PROPS" => "Y",
    		"HIDE_NOT_AVAILABLE_OFFERS" => "N",
    		"DETAIL_STRICT_SECTION_CHECK" => "N",
    		"COMPATIBLE_MODE" => "Y",
    		"TEMPLATE_THEME" => "blue",
    		"LABEL_PROP" => "",
    		"PRODUCT_DISPLAY_MODE" => "Y",
    		"COMMON_SHOW_CLOSE_POPUP" => "N",
    		"PRODUCT_SUBSCRIPTION" => "Y",
    		"SHOW_MAX_QUANTITY" => "N",
    		"MESS_BTN_BUY" => "Купить",
    		"MESS_BTN_ADD_TO_BASKET" => "В корзину",
    		"MESS_BTN_COMPARE" => "Сравнение",
    		"MESS_BTN_DETAIL" => "Подробнее",
    		"MESS_NOT_AVAILABLE" => "Нет в наличии",
    		"MESS_BTN_SUBSCRIBE" => "Подписаться",
    		"SIDEBAR_SECTION_SHOW" => "Y",
    		"SIDEBAR_DETAIL_SHOW" => "N",
    		"SIDEBAR_PATH" => "",
    		"USE_SALE_BESTSELLERS" => "Y",
    		"FILTER_VIEW_MODE" => "VERTICAL",
    		"FILTER_HIDE_ON_MOBILE" => "N",
    		"INSTANT_RELOAD" => "N",
    		"COMPARE_POSITION_FIXED" => "Y",
    		"COMPARE_POSITION" => "top left",
    		"USE_RATIO_IN_RANGES" => "Y",
    		"USE_COMMON_SETTINGS_BASKET_POPUP" => "N",
    		"COMMON_ADD_TO_BASKET_ACTION" => "ADD",
    		"TOP_ADD_TO_BASKET_ACTION" => "ADD",
    		"SECTION_ADD_TO_BASKET_ACTION" => "ADD",
    		"DETAIL_ADD_TO_BASKET_ACTION" => array(
    			0 => "BUY",
    		),
    		"DETAIL_ADD_TO_BASKET_ACTION_PRIMARY" => array(
    			0 => "BUY",
    		),
    		"TOP_PROPERTY_CODE_MOBILE" => "",
    		"TOP_VIEW_MODE" => "SECTION",
    		"TOP_PRODUCT_BLOCKS_ORDER" => "price,props,sku,quantityLimit,quantity,buttons,compare",
    		"TOP_PRODUCT_ROW_VARIANTS" => "[{'VARIANT':'3','BIG_DATA':false},{'VARIANT':'3','BIG_DATA':false}]",
    		"TOP_ENLARGE_PRODUCT" => "STRICT",
    		"TOP_SHOW_SLIDER" => "Y",
    		"TOP_SLIDER_INTERVAL" => "3000",
    		"TOP_SLIDER_PROGRESS" => "N",
    		"SECTIONS_VIEW_MODE" => "LIST",
    		"SECTIONS_SHOW_PARENT_NAME" => "Y",
    		"LIST_PROPERTY_CODE_MOBILE" => "",
    		"LIST_PRODUCT_BLOCKS_ORDER" => "price,props,sku,quantityLimit,quantity,buttons,compare",
    		"LIST_PRODUCT_ROW_VARIANTS" => "[{'VARIANT':'3','BIG_DATA':false},{'VARIANT':'3','BIG_DATA':false},{'VARIANT':'3','BIG_DATA':false},{'VARIANT':'3','BIG_DATA':false},{'VARIANT':'3','BIG_DATA':false}]",
    		"LIST_ENLARGE_PRODUCT" => "STRICT",
    		"LIST_SHOW_SLIDER" => "Y",
    		"LIST_SLIDER_INTERVAL" => "3000",
    		"LIST_SLIDER_PROGRESS" => "N",
    		"DETAIL_MAIN_BLOCK_PROPERTY_CODE" => "",
    		"DETAIL_MAIN_BLOCK_OFFERS_PROPERTY_CODE" => "",
    		"DETAIL_USE_VOTE_RATING" => "N",
    		"DETAIL_USE_COMMENTS" => "N",
    		"DETAIL_BRAND_USE" => "N",
    		"DETAIL_DISPLAY_NAME" => "Y",
    		"DETAIL_IMAGE_RESOLUTION" => "16by9",
    		"DETAIL_PRODUCT_INFO_BLOCK_ORDER" => "sku,props",
    		"DETAIL_PRODUCT_PAY_BLOCK_ORDER" => "rating,price,priceRanges,quantityLimit,quantity,buttons",
    		"DETAIL_BLOCKS_ORDER" => "complect,nabor,offers,tabs,services,news,blog,staff,vacancy,gifts,goods",
    		"DETAIL_SHOW_SLIDER" => "N",
    		"DETAIL_DETAIL_PICTURE_MODE" => array(
    			0 => "POPUP",
    			1 => "MAGNIFIER",
    		),
    		"DETAIL_DISPLAY_PREVIEW_TEXT_MODE" => "E",
    		"MESS_PRICE_RANGES_TITLE" => "Цены",
    		"MESS_DESCRIPTION_TAB" => "Описание",
    		"MESS_PROPERTIES_TAB" => "Характеристики",
    		"MESS_COMMENTS_TAB" => "Комментарии",
    		"LAZY_LOAD" => "N",
    		"LOAD_ON_SCROLL" => "N",
    		"USE_ENHANCED_ECOMMERCE" => "N",
    		"DETAIL_DOCS_PROP" => "-",
    		"STIKERS_PROP" => "HIT",
    		"USE_SHARE" => "Y",
    		"TAB_OFFERS_NAME" => "",
    		"TAB_DESCR_NAME" => "",
    		"TAB_KOMPLECT_NAME" => "",
    		"TAB_NABOR_NAME" => "",
    		"TAB_CHAR_NAME" => "",
    		"TAB_VIDEO_NAME" => "",
    		"TAB_REVIEW_NAME" => "",
    		"TAB_FAQ_NAME" => "",
    		"TAB_STOCK_NAME" => "",
    		"TAB_DOPS_NAME" => "",
    		"BLOCK_SERVICES_NAME" => "",
    		"BLOCK_DOCS_NAME" => "",
    		"DIR_PARAMS" => CMax::GetDirMenuParametrs(__DIR__),
    		"ELEMENT_DETAIL_TYPE_VIEW" => "FROM_MODULE",
    		"SHOW_CHEAPER_FORM" => "N",
    		"LANDING_TITLE" => "Популярные категории",
    		"LANDING_SECTION_COUNT" => "10",
    		"LANDING_SEARCH_TITLE" => "Похожие запросы",
    		"LANDING_SEARCH_COUNT" => "7",
    		"LIST_SECTIONS_TYPE_VIEW" => "sections_1",
    		"LIST_ELEMENTS_TYPE_VIEW" => "list_elements_1",
    		"CHEAPER_FORM_NAME" => "",
    		"SECTIONS_TYPE_VIEW" => "FROM_MODULE",
    		"SECTION_ELEMENTS_TYPE_VIEW" => "list_elements_1",
    		"ELEMENT_TYPE_VIEW" => "FROM_MODULE",
    		"LANDING_TYPE_VIEW" => "FROM_MODULE",
    		"FILE_404" => "",
    		"SHOW_MEASURE_WITH_RATIO" => "N",
    		"SHOW_COUNTER_LIST" => "Y",
    		"SHOW_DISCOUNT_TIME_EACH_SKU" => "N",
    		"USER_CONSENT" => "N",
    		"USER_CONSENT_ID" => "0",
    		"USER_CONSENT_IS_CHECKED" => "Y",
    		"USER_CONSENT_IS_LOADED" => "N",
    		"SHOW_ARTICLE_SKU" => "Y",
    		"USE_FILTER_PRICE" => "N",
    		"DISPLAY_ELEMENT_COUNT" => "Y",
    		"RESTART" => "N",
    		"USE_LANGUAGE_GUESS" => "Y",
    		"NO_WORD_LOGIC" => "Y",
    		"SORT_REGION_PRICE" => "Розница (учебники)",
    		"SHOW_SECTION_DESC" => "Y",
    		"USE_ADDITIONAL_GALLERY" => "Y",
    		"ADDITIONAL_GALLERY_TYPE" => "BIG",
    		"ADDITIONAL_GALLERY_PROPERTY_CODE" => "-",
    		"ADDITIONAL_GALLERY_OFFERS_PROPERTY_CODE" => "",
    		"BLOCK_ADDITIONAL_GALLERY_NAME" => "",
    		"STORES_FILTER" => "TITLE",
    		"STORES_FILTER_ORDER" => "SORT_ASC",
    		"VIEW_BLOCK_TYPE" => "N",
    		"SHOW_HOW_BUY" => "N",
    		"TITLE_HOW_BUY" => "Как купить",
    		"SHOW_DELIVERY" => "Y",
    		"TITLE_DELIVERY" => "Как купить",
    		"SHOW_PAYMENT" => "N",
    		"TITLE_PAYMENT" => "Оплата",
    		"SHOW_GARANTY" => "Y",
    		"TITLE_GARANTY" => "Условия гарантии",
    		"TITLE_SLIDER" => "Рекомендуем",
    		"SHOW_SEND_GIFT" => "N",
    		"SEND_GIFT_FORM_NAME" => "",
    		"BLOCK_LANDINGS_NAME" => "",
    		"BLOG_IBLOCK_ID" => "17",
    		"BLOCK_BLOG_NAME" => "",
    		"RECOMEND_COUNT" => "5",
    		"VISIBLE_PROP_COUNT" => "6",
    		"BIGDATA_EXT" => "bigdata_1",
    		"SHOW_DISCOUNT_PERCENT_NUMBER" => "Y",
    		"ALT_TITLE_GET" => "NORMAL",
    		"BUNDLE_ITEMS_COUNT" => "3",
    		"SHOW_LANDINGS_SEARCH" => "Y",
    		"SHOW_LANDINGS" => "N",
    		"LANDING_POSITION" => "BEFORE_PRODUCTS",
    		"USE_DETAIL_PREDICTION" => "Y",
    		"SECTION_BG" => "-",
    		"OFFER_SHOW_PREVIEW_PICTURE_PROPS" => "",
    		"LANDING_IBLOCK_ID" => "29",
    		"DETAIL_BLOCKS_TAB_ORDER" =>
  • Битрикс не отображаются разделы каталога, как исправить?

    @juli_zzz Автор вопроса
    "DETAIL_PROPERTY_CODE" => array(
    			0 => "BRAND",
    			1 => "LINK_SALE",
    			2 => "EXPANDABLES",
    			3 => "CML2_ARTICLE",
    			4 => "LINK_VACANCY",
    			5 => "VIDEO_YOUTUBE",
    			6 => "POPUP_VIDEO",
    			7 => "PROP_2104",
    			8 => "LINK_NEWS",
    			9 => "ASSOCIATED",
    			10 => "HELP_TEXT",
    			11 => "LINK_STAFF",
    			12 => "LINK_BLOG",
    			13 => "PROP_2033",
    			14 => "SERVICES",
    			15 => "CML2_ATTRIBUTES",
    			16 => "COLOR_REF2",
    			17 => "PROP_305",
    			18 => "PROP_352",
    			19 => "PROP_317",
    			20 => "PROP_357",
    			21 => "PROP_2102",
    			22 => "PROP_318",
    			23 => "PROP_159",
    			24 => "PROP_349",
    			25 => "PROP_327",
    			26 => "PROP_2052",
    			27 => "PROP_370",
    			28 => "PROP_336",
    			29 => "PROP_2115",
    			30 => "PROP_346",
    			31 => "PROP_2120",
    			32 => "PROP_2053",
    			33 => "PROP_363",
    			34 => "PROP_320",
    			35 => "PROP_2089",
    			36 => "PROP_325",
    			37 => "PROP_2103",
    			38 => "PROP_2085",
    			39 => "PROP_300",
    			40 => "PROP_322",
    			41 => "PROP_362",
    			42 => "PROP_365",
    			43 => "PROP_359",
    			44 => "PROP_284",
    			45 => "PROP_364",
    			46 => "PROP_356",
    			47 => "PROP_343",
    			48 => "PROP_2083",
    			49 => "PROP_314",
    			50 => "PROP_348",
    			51 => "PROP_316",
    			52 => "PROP_350",
    			53 => "PROP_333",
    			54 => "PROP_332",
    			55 => "PROP_360",
    			56 => "PROP_353",
    			57 => "PROP_347",
    			58 => "PROP_25",
    			59 => "PROP_2114",
    			60 => "PROP_301",
    			61 => "PROP_2101",
    			62 => "PROP_2067",
    			63 => "PROP_323",
    			64 => "PROP_324",
    			65 => "PROP_355",
    			66 => "PROP_304",
    			67 => "PROP_358",
    			68 => "PROP_319",
    			69 => "PROP_344",
    			70 => "PROP_328",
    			71 => "PROP_338",
    			72 => "PROP_2113",
    			73 => "PROP_2065",
    			74 => "PROP_366",
    			75 => "PROP_302",
    			76 => "PROP_303",
    			77 => "PROP_2054",
    			78 => "PROP_341",
    			79 => "PROP_223",
    			80 => "PROP_283",
    			81 => "PROP_354",
    			82 => "PROP_313",
    			83 => "PROP_2066",
    			84 => "PROP_329",
    			85 => "PROP_342",
    			86 => "PROP_367",
    			87 => "PROP_2084",
    			88 => "PROP_340",
    			89 => "PROP_351",
    			90 => "PROP_368",
    			91 => "PROP_369",
    			92 => "PROP_331",
    			93 => "PROP_337",
    			94 => "PROP_345",
    			95 => "PROP_339",
    			96 => "PROP_310",
    			97 => "PROP_309",
    			98 => "PROP_330",
    			99 => "PROP_2017",
    			100 => "PROP_335",
    			101 => "PROP_321",
    			102 => "PROP_308",
    			103 => "PROP_206",
    			104 => "PROP_334",
    			105 => "PROP_2100",
    			106 => "PROP_311",
    			107 => "PROP_2132",
    			108 => "SHUM",
    			109 => "PROP_361",
    			110 => "PROP_326",
    			111 => "PROP_315",
    			112 => "PROP_2091",
    			113 => "PROP_2026",
    			114 => "PROP_307",
    			115 => "PROP_2090",
    			116 => "PROP_2027",
    			117 => "PROP_2098",
    			118 => "PROP_2112",
    			119 => "PROP_2122",
    			120 => "PROP_221",
    			121 => "PROP_24",
    			122 => "PROP_2134",
    			123 => "PROP_23",
    			124 => "PROP_2049",
    			125 => "PROP_22",
    			126 => "PROP_2095",
    			127 => "PROP_2044",
    			128 => "PROP_162",
    			129 => "PROP_207",
    			130 => "PROP_220",
    			131 => "PROP_2094",
    			132 => "PROP_2092",
    			133 => "PROP_2111",
    			134 => "PROP_2133",
    			135 => "PROP_2096",
    			136 => "PROP_2086",
    			137 => "PROP_285",
    			138 => "PROP_2130",
    			139 => "PROP_286",
    			140 => "PROP_222",
    			141 => "PROP_2121",
    			142 => "PROP_2123",
    			143 => "PROP_2124",
    			144 => "PROP_2093",
    			145 => "LINK_REVIEWS",
    			146 => "PROP_312",
    			147 => "PROP_3083",
    			148 => "PROP_2055",
    			149 => "PROP_2069",
    			150 => "PROP_2062",
    			151 => "PROP_2061",
    			152 => "RECOMMEND",
    			153 => "NEW",
    			154 => "STOCK",
    			155 => "VIDEO",
    			156 => "",
    		),
    		"DETAIL_META_KEYWORDS" => "-",
    		"DETAIL_META_DESCRIPTION" => "-",
    		"DETAIL_BROWSER_TITLE" => "-",
    		"DETAIL_OFFERS_FIELD_CODE" => array(
    			0 => "NAME",
    			1 => "PREVIEW_PICTURE",
    			2 => "DETAIL_PICTURE",
    			3 => "DETAIL_PAGE_URL",
    			4 => "",
    		),
    		"DETAIL_OFFERS_PROPERTY_CODE" => array(
    			0 => "FRAROMA",
    			1 => "ARTICLE",
    			2 => "WEIGHT",
    			3 => "SPORT",
    			4 => "VLAGOOTVOD",
    			5 => "AGE",
    			6 => "SIZES2",
    			7 => "RUKAV",
    			8 => "KAPUSHON",
    			9 => "FRCOLLECTION",
    			10 => "FRLINE",
    			11 => "FRFITIL",
    			12 => "VOLUME",
    			13 => "FRMADEIN",
    			14 => "FRELITE",
    			15 => "SIZES",
    			16 => "SIZES5",
    			17 => "SIZES4",
    			18 => "SIZES3",
    			19 => "TALL",
    			20 => "FRFAMILY",
    			21 => "FRSOSTAVCANDLE",
    			22 => "FRTYPE",
    			23 => "FRFORM",
    			24 => "COLOR_REF",
    			25 => "",
    		),
    		"PROPERTIES_DISPLAY_LOCATION" => "TAB",
    		"SHOW_BRAND_PICTURE" => "Y",
    		"SHOW_ASK_BLOCK" => "N",
    		"ASK_FORM_ID" => "2",
    		"SHOW_ADDITIONAL_TAB" => "N",
    		"PROPERTIES_DISPLAY_TYPE" => "TABLE",
    		"SHOW_KIT_PARTS" => "Y",
    		"SHOW_KIT_PARTS_PRICES" => "Y",
    		"LINK_IBLOCK_TYPE" => "",
    		"LINK_IBLOCK_ID" => "",
    		"LINK_PROPERTY_SID" => "",
    		"LINK_ELEMENTS_URL" => "link.php?PARENT_ELEMENT_ID=#ELEMENT_ID#",
    		"USE_ALSO_BUY" => "Y",
    		"ALSO_BUY_ELEMENT_COUNT" => "5",
    		"ALSO_BUY_MIN_BUYES" => "2",
    		"USE_STORE" => "N",
    		"USE_STORE_PHONE" => "Y",
    		"USE_STORE_SCHEDULE" => "Y",
    		"USE_MIN_AMOUNT" => "N",
    		"MIN_AMOUNT" => "10",
    		"STORE_PATH" => "/contacts/stores/#store_id#/",
    		"MAIN_TITLE" => "Наличие на складах",
    		"MAX_AMOUNT" => "20",
    		"USE_ONLY_MAX_AMOUNT" => "Y",
    		"OFFERS_SORT_FIELD" => "sort",
    		"OFFERS_SORT_ORDER" => "asc",
    		"OFFERS_SORT_FIELD2" => "sort",
    		"OFFERS_SORT_ORDER2" => "asc",
    		"PAGER_TEMPLATE" => "main",
    		"DISPLAY_TOP_PAGER" => "N",
    		"DISPLAY_BOTTOM_PAGER" => "Y",
    		"PAGER_TITLE" => "Товары",
    		"PAGER_SHOW_ALWAYS" => "N",
    		"PAGER_DESC_NUMBERING" => "N",
    		"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
    		"PAGER_SHOW_ALL" => "N",
    		"IBLOCK_STOCK_ID" => "24",
    		"IBLOCK_LINK_NEWS_ID" => "20",
    		"IBLOCK_SERVICES_ID" => "22",
    		"IBLOCK_TIZERS_ID" => "10",
    		"IBLOCK_LINK_REVIEWS_ID" => "19",
    		"STAFF_IBLOCK_ID" => "16",
    		"VACANCY_IBLOCK_ID" => "2",
    		"SHOW_QUANTITY" => "Y",
    		"SHOW_MEASURE" => "Y",
    		"SHOW_QUANTITY_COUNT" => "Y",
    		"USE_RATING" => "N",
    		"DISPLAY_WISH_BUTTONS" => "Y",
    		"DEFAULT_COUNT" => "1",
    		"SHOW_HINTS" => "Y",
    		"AJAX_OPTION_ADDITIONAL" => "",
    		"ADD_SECTIONS_CHAIN" => "Y",
    		"ADD_ELEMENT_CHAIN" => "Y",
    		"ADD_PROPERTIES_TO_BASKET" => "N",
    		"PARTIAL_PRODUCT_PROPERTIES" => "N",
    		"DETAIL_CHECK_SECTION_ID_VARIABLE" => "N",
    		"STORES" => array(
    			0 => "",
    			1 => "",
    		),
    		"USER_FIELDS" => array(
    			0 => "",
    			1 => "UF_CATALOG_ICON",
    			2 => "",
    		),
    		"FIELDS" => array(
    			0 => "",
    			1 => "",
    		),
    		"SHOW_EMPTY_STORE" => "Y",
    		"SHOW_GENERAL_STORE_INFORMATION" => "N",
    		"TOP_ELEMENT_COUNT" => "8",
    		"TOP_LINE_ELEMENT_COUNT" => "4",
    		"TOP_ELEMENT_SORT_FIELD" => "sort",
    		"TOP_ELEMENT_SORT_ORDER" => "asc",
    		"TOP_ELEMENT_SORT_FIELD2" => "sort",
    		"TOP_ELEMENT_SORT_ORDER2" => "asc",
    		"TOP_PROPERTY_CODE" => array(
    			0 => "",
    			1 => "",
    		),
    		"COMPONENT_TEMPLATE" => "main",
    		"DETAIL_SET_CANONICAL_URL" => "Y",
    		"SHOW_DEACTIVATED" => "N",
    		"TOP_OFFERS_FIELD_CODE" => array(
    			0 => "ID",
    			1 => "",
    		),
    		"TOP_OFFERS_PROPERTY_CODE" => array(
    			0 => "",
    			1 => "",
    		),
    		"TOP_OFFERS_LIMIT" => "10",
    		"SECTION_TOP_BLOCK_TITLE" => "Лучшие предложения",
    		"OFFER_TREE_PROPS" => array(
    			0 => "COLOR_REF",
    			1 => "SIZES",
    			2 => "VOLUME",
    			3 => "FRTYPE",
    			4 => "WEIGHT",
    			5 => "SIZES2",
    			6 => "SIZES3",
    			7 => "SIZES4",
    			8 => "SIZES5",
    		),
  • Битрикс не отображаются разделы каталога, как исправить?

    @juli_zzz Автор вопроса
    60a7bec272850920951926.jpeg
    <?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
    $APPLICATION->SetTitle("Каталог");
    $APPLICATION->IncludeComponent(
    	"bitrix:catalog", 
    	"main", 
    	array(
    		"IBLOCK_TYPE" => "1c_catalog",
    		"IBLOCK_ID" => "35",
    		"HIDE_NOT_AVAILABLE" => "N",
    		"BASKET_URL" => "/basket/",
    		"ACTION_VARIABLE" => "action",
    		"PRODUCT_ID_VARIABLE" => "id",
    		"SECTION_ID_VARIABLE" => "SECTION_ID",
    		"PRODUCT_QUANTITY_VARIABLE" => "quantity",
    		"PRODUCT_PROPS_VARIABLE" => "prop",
    		"SEF_MODE" => "Y",
    		"SEF_FOLDER" => "/catalog/",
    		"AJAX_MODE" => "N",
    		"AJAX_OPTION_JUMP" => "N",
    		"AJAX_OPTION_STYLE" => "Y",
    		"AJAX_OPTION_HISTORY" => "Y",
    		"CACHE_TYPE" => "A",
    		"CACHE_TIME" => "3600000",
    		"CACHE_FILTER" => "Y",
    		"CACHE_GROUPS" => "Y",
    		"SET_TITLE" => "Y",
    		"SET_STATUS_404" => "Y",
    		"USE_ELEMENT_COUNTER" => "Y",
    		"USE_FILTER" => "Y",
    		"FILTER_NAME" => "MAX_SMART_FILTER",
    		"FILTER_FIELD_CODE" => array(
    			0 => "",
    			1 => "",
    		),
    		"FILTER_PROPERTY_CODE" => array(
    			0 => "TEMATIKA",
    			1 => "AVTOR",
    			2 => "PREDMET",
    			3 => "KLASS_VOZRAST",
    			4 => "SERIYA",
    			5 => "UROVEN_OBRAZOVANIYA",
    			6 => "IZDATELSKIY_BREND",
    			7 => "IN_STOCK",
    			8 => "",
    		),
    		"FILTER_PRICE_CODE" => array(
    			0 => "Розница (учебники)",
    		),
    		"FILTER_OFFERS_FIELD_CODE" => array(
    			0 => "NAME",
    			1 => "",
    		),
    		"FILTER_OFFERS_PROPERTY_CODE" => array(
    			0 => "",
    			1 => "COLOR",
    			2 => "CML2_LINK",
    			3 => "",
    		),
    		"USE_REVIEW" => "N",
    		"MESSAGES_PER_PAGE" => "5",
    		"USE_CAPTCHA" => "Y",
    		"REVIEW_AJAX_POST" => "Y",
    		"PATH_TO_SMILE" => "/bitrix/images/forum/smile/",
    		"FORUM_ID" => "1",
    		"URL_TEMPLATES_READ" => "",
    		"SHOW_LINK_TO_FORUM" => "Y",
    		"POST_FIRST_MESSAGE" => "N",
    		"USE_COMPARE" => "Y",
    		"COMPARE_NAME" => "CATALOG_COMPARE_LIST",
    		"COMPARE_FIELD_CODE" => array(
    			0 => "NAME",
    			1 => "TAGS",
    			2 => "SORT",
    			3 => "PREVIEW_PICTURE",
    			4 => "",
    		),
    		"COMPARE_PROPERTY_CODE" => array(
    			0 => "BRAND",
    			1 => "CML2_ARTICLE",
    			2 => "CML2_BASE_UNIT",
    			3 => "PROP_2033",
    			4 => "COLOR_REF2",
    			5 => "PROP_159",
    			6 => "PROP_2052",
    			7 => "PROP_2053",
    			8 => "PROP_2083",
    			9 => "PROP_2065",
    			10 => "PROP_2054",
    			11 => "PROP_2017",
    			12 => "PROP_2026",
    			13 => "PROP_2027",
    			14 => "PROP_2049",
    			15 => "PROP_2044",
    			16 => "PROP_162",
    			17 => "CML2_MANUFACTURER",
    			18 => "PROP_2055",
    			19 => "PROP_2069",
    			20 => "PROP_2062",
    			21 => "PROP_2061",
    			22 => "",
    		),
    		"COMPARE_OFFERS_FIELD_CODE" => array(
    			0 => "NAME",
    			1 => "PREVIEW_PICTURE",
    			2 => "",
    		),
    		"COMPARE_OFFERS_PROPERTY_CODE" => array(
    			0 => "ARTICLE",
    			1 => "VOLUME",
    			2 => "SIZES",
    			3 => "COLOR_REF",
    			4 => "",
    		),
    		"COMPARE_ELEMENT_SORT_FIELD" => "shows",
    		"COMPARE_ELEMENT_SORT_ORDER" => "asc",
    		"DISPLAY_ELEMENT_SELECT_BOX" => "N",
    		"PRICE_CODE" => array(
    			0 => "Розница (учебники)",
    		),
    		"USE_PRICE_COUNT" => "N",
    		"SHOW_PRICE_COUNT" => "1",
    		"PRICE_VAT_INCLUDE" => "Y",
    		"PRICE_VAT_SHOW_VALUE" => "N",
    		"PRODUCT_PROPERTIES" => "",
    		"USE_PRODUCT_QUANTITY" => "Y",
    		"CONVERT_CURRENCY" => "Y",
    		"CURRENCY_ID" => "RUB",
    		"OFFERS_CART_PROPERTIES" => "",
    		"SHOW_TOP_ELEMENTS" => "Y",
    		"SECTION_COUNT_ELEMENTS" => "Y",
    		"SECTION_TOP_DEPTH" => "2",
    		"SECTIONS_LIST_PREVIEW_PROPERTY" => "DESCRIPTION",
    		"SHOW_SECTION_LIST_PICTURES" => "Y",
    		"PAGE_ELEMENT_COUNT" => "20",
    		"LINE_ELEMENT_COUNT" => "4",
    		"ELEMENT_SORT_FIELD" => "SHOWS",
    		"ELEMENT_SORT_ORDER" => "asc",
    		"ELEMENT_SORT_FIELD2" => "sort",
    		"ELEMENT_SORT_ORDER2" => "asc",
    		"LIST_PROPERTY_CODE" => array(
    			0 => "HIT",
    			1 => "BRAND",
    			2 => "CML2_ARTICLE",
    			3 => "PROP_2104",
    			4 => "PODBORKI",
    			5 => "PROP_2033",
    			6 => "COLOR_REF2",
    			7 => "PROP_305",
    			8 => "PROP_352",
    			9 => "PROP_317",
    			10 => "PROP_357",
    			11 => "PROP_2102",
    			12 => "PROP_318",
    			13 => "PROP_159",
    			14 => "PROP_349",
    			15 => "PROP_327",
    			16 => "PROP_2052",
    			17 => "PROP_370",
    			18 => "PROP_336",
    			19 => "PROP_2115",
    			20 => "PROP_346",
    			21 => "PROP_2120",
    			22 => "PROP_2053",
    			23 => "PROP_363",
    			24 => "PROP_320",
    			25 => "PROP_2089",
    			26 => "PROP_325",
    			27 => "PROP_2103",
    			28 => "PROP_2085",
    			29 => "PROP_300",
    			30 => "PROP_322",
    			31 => "PROP_362",
    			32 => "PROP_365",
    			33 => "PROP_359",
    			34 => "PROP_284",
    			35 => "PROP_364",
    			36 => "PROP_356",
    			37 => "PROP_343",
    			38 => "PROP_2083",
    			39 => "PROP_314",
    			40 => "PROP_348",
    			41 => "PROP_316",
    			42 => "PROP_350",
    			43 => "PROP_333",
    			44 => "PROP_332",
    			45 => "PROP_360",
    			46 => "PROP_353",
    			47 => "PROP_347",
    			48 => "PROP_25",
    			49 => "PROP_2114",
    			50 => "PROP_301",
    			51 => "PROP_2101",
    			52 => "PROP_2067",
    			53 => "PROP_323",
    			54 => "PROP_324",
    			55 => "PROP_355",
    			56 => "PROP_304",
    			57 => "PROP_358",
    			58 => "PROP_319",
    			59 => "PROP_344",
    			60 => "PROP_328",
    			61 => "PROP_338",
    			62 => "PROP_2065",
    			63 => "PROP_366",
    			64 => "PROP_302",
    			65 => "PROP_303",
    			66 => "PROP_2054",
    			67 => "PROP_341",
    			68 => "PROP_223",
    			69 => "PROP_283",
    			70 => "PROP_354",
    			71 => "PROP_313",
    			72 => "PROP_2066",
    			73 => "PROP_329",
    			74 => "PROP_342",
    			75 => "PROP_367",
    			76 => "PROP_2084",
    			77 => "PROP_340",
    			78 => "PROP_351",
    			79 => "PROP_368",
    			80 => "PROP_369",
    			81 => "PROP_331",
    			82 => "PROP_337",
    			83 => "PROP_345",
    			84 => "PROP_339",
    			85 => "PROP_310",
    			86 => "PROP_309",
    			87 => "PROP_330",
    			88 => "PROP_2017",
    			89 => "PROP_335",
    			90 => "PROP_321",
    			91 => "PROP_308",
    			92 => "PROP_206",
    			93 => "PROP_334",
    			94 => "PROP_2100",
    			95 => "PROP_311",
    			96 => "PROP_2132",
    			97 => "SHUM",
    			98 => "PROP_361",
    			99 => "PROP_326",
    			100 => "PROP_315",
    			101 => "PROP_2091",
    			102 => "PROP_2026",
    			103 => "PROP_307",
    			104 => "PROP_2027",
    			105 => "PROP_2098",
    			106 => "PROP_2122",
    			107 => "PROP_24",
    			108 => "PROP_2049",
    			109 => "PROP_22",
    			110 => "PROP_2095",
    			111 => "PROP_2044",
    			112 => "PROP_162",
    			113 => "PROP_2055",
    			114 => "PROP_2069",
    			115 => "PROP_2062",
    			116 => "PROP_2061",
    			117 => "CML2_LINK",
    			118 => "",
    		),
    		"INCLUDE_SUBSECTIONS" => "Y",
    		"LIST_META_KEYWORDS" => "-",
    		"LIST_META_DESCRIPTION" => "-",
    		"LIST_BROWSER_TITLE" => "-",
    		"LIST_OFFERS_FIELD_CODE" => array(
    			0 => "NAME",
    			1 => "CML2_LINK",
    			2 => "DETAIL_PAGE_URL",
    			3 => "",
    		),
    		"LIST_OFFERS_PROPERTY_CODE" => array(
    			0 => "ARTICLE",
    			1 => "SPORT",
    			2 => "SIZES2",
    			3 => "MORE_PHOTO",
    			4 => "VOLUME",
    			5 => "SIZES",
    			6 => "SIZES5",
    			7 => "SIZES4",
    			8 => "SIZES3",
    			9 => "COLOR_REF",
    			10 => "",
    		),
    		"LIST_OFFERS_LIMIT" => "10",
    		"SORT_BUTTONS" => array(
    			0 => "POPULARITY",
    			1 => "NAME",
    			2 => "PRICE",
    		),
    		"SORT_PRICES" => "REGION_PRICE",
    		"DEFAULT_LIST_TEMPLATE" => "block",
    		"SECTION_DISPLAY_PROPERTY" => "",
    		"LIST_DISPLAY_POPUP_IMAGE" => "Y",
    		"SECTION_PREVIEW_PROPERTY" => "DESCRIPTION",
    		"SHOW_SECTION_PICTURES" => "Y",
    		"SHOW_SECTION_SIBLINGS" => "Y",
  • Битрикс не отображаются разделы каталога, как исправить?

    @juli_zzz Автор вопроса
    Кеш сбросила, разделы доступны, в параметрах компонента инфоблок тоже указан. И ведь интересно, что товары-то доступны в публичной части, не отображаются только разделы.
    Что можно проверить в шаблоне?
  • Как вывести свойство типа "Привязка к элементу" с картинкой?

    @juli_zzz Автор вопроса
    Добавила в шаблон news.detail код
    <?
    if ($rsElements = GetIBlockElementListEx("catalog", "30", false, array($ELEMENT_SORT_FIELD => $ELEMENT_SORT_ORDER, "ID" => "ASC"), false, $arrFilter)):
      $rsElements->NavStart($PAGE_ELEMENT_COUNT);
      while ($obElement = $rsElements->GetNextElement()):
        $arElement = $obElement->GetFields();
        $arImagesPath[$arElement["PREVIEW_PICTURE"]] = CFile::GetPath($arElement["PREVIEW_PICTURE"]);
      endwhile;
    endif;
    ?>


    Подскажите, что не так делаю?
    Простите за глупые вопросы