D
D
dimasibirak2017-02-02 20:09:01
PHP
dimasibirak, 2017-02-02 20:09:01

Why does the smart filter not work in 1C Bitrix?

Good day, dear forum users, I’ve broken my head and I can’t understand why the smart search in Bitrix does not work, I am attaching the code below.

<?$APPLICATION->IncludeComponent(
  "bitrix:catalog.smart.filter", 
  "visual_vertical1", 
  array(
    "CACHE_GROUPS" => "Y",
    "CACHE_TIME" => "36000000",
    "CACHE_TYPE" => "A",
    "CONVERT_CURRENCY" => "N",
    "DISPLAY_ELEMENT_COUNT" => "Y",
    "FILTER_NAME" => "arMySuperFilter",
    "FILTER_VIEW_MODE" => "vertical",
    "HIDE_NOT_AVAILABLE" => "N",
    "IBLOCK_ID" => "1",
    "IBLOCK_TYPE" => "catalog",
    "PAGER_PARAMS_NAME" => "arrPager",
    "POPUP_POSITION" => "left",
    "PRICE_CODE" => array(
    ),
    "SAVE_IN_SESSION" => "N",
    "SECTION_CODE" => "diamond_crown",
    "SECTION_DESCRIPTION" => "-",
    "SECTION_ID" => " ={\$arCurSection[\"ID\"]} ",
    "SECTION_TITLE" => "-",
    "SEF_MODE" => "Y",
    "TEMPLATE_THEME" => "blue",
    "XML_EXPORT" => "N",
    "COMPONENT_TEMPLATE" => "visual_vertical1",
    "SEF_RULE" => "",
    "SECTION_CODE_PATH" => "",
    "SMART_FILTER_PATH" => ""
  ),
  false
);?>
</div>
 <?$APPLICATION->IncludeComponent(
  "bitrix:catalog", 
  "catalog", 
  array(
    "ACTION_VARIABLE" => "action",
    "ADD_ELEMENT_CHAIN" => "N",
    "ADD_PICT_PROP" => "-",
    "ADD_PROPERTIES_TO_BASKET" => "Y",
    "ADD_SECTIONS_CHAIN" => "Y",
    "AJAX_MODE" => "N",
    "AJAX_OPTION_ADDITIONAL" => "",
    "AJAX_OPTION_HISTORY" => "N",
    "AJAX_OPTION_JUMP" => "N",
    "AJAX_OPTION_STYLE" => "Y",
    "BASKET_URL" => "/personal/basket.php",
    "BIG_DATA_RCM_TYPE" => "bestsell",
    "CACHE_FILTER" => "N",
    "CACHE_GROUPS" => "Y",
    "CACHE_TIME" => "36000000",
    "CACHE_TYPE" => "A",
    "COMMON_ADD_TO_BASKET_ACTION" => "",
    "COMMON_SHOW_CLOSE_POPUP" => "N",
    "COMPONENT_TEMPLATE" => "catalog",
    "CONVERT_CURRENCY" => "Y",
    "CURRENCY_ID" => "RUB",
    "DETAIL_ADD_DETAIL_TO_SLIDER" => "N",
    "DETAIL_ADD_TO_BASKET_ACTION" => array(
      0 => "BUY",
    ),
    "DETAIL_BACKGROUND_IMAGE" => "-",
    "DETAIL_BRAND_USE" => "N",
    "DETAIL_BROWSER_TITLE" => "-",
    "DETAIL_CHECK_SECTION_ID_VARIABLE" => "N",
    "DETAIL_DETAIL_PICTURE_MODE" => "IMG",
    "DETAIL_DISPLAY_NAME" => "Y",
    "DETAIL_DISPLAY_PREVIEW_TEXT_MODE" => "E",
    "DETAIL_META_DESCRIPTION" => "-",
    "DETAIL_META_KEYWORDS" => "-",
    "DETAIL_PROPERTY_CODE" => array(
      0 => "",
      1 => "VOSTANOVLENIE",
      2 => "",
    ),
    "DETAIL_SET_CANONICAL_URL" => "N",
    "DETAIL_SET_VIEWED_IN_COMPONENT" => "N",
    "DETAIL_SHOW_MAX_QUANTITY" => "N",
    "DETAIL_USE_COMMENTS" => "N",
    "DETAIL_USE_VOTE_RATING" => "N",
    "DISABLE_INIT_JS_IN_COMPONENT" => "N",
    "DISPLAY_BOTTOM_PAGER" => "Y",
    "DISPLAY_TOP_PAGER" => "N",
    "ELEMENT_SORT_FIELD" => "sort",
    "ELEMENT_SORT_FIELD2" => "id",
    "ELEMENT_SORT_ORDER" => "asc",
    "ELEMENT_SORT_ORDER2" => "desc",
    "FILTER_FIELD_CODE" => array(
      0 => "SORT",
      1 => "IBLOCK_EXTERNAL_ID",
      2 => "",
    ),
    "FILTER_NAME" => "arMySuperFilter",
    "FILTER_PRICE_CODE" => array(
      0 => "base",
    ),
    "FILTER_PROPERTY_CODE" => array(
      0 => "diametr_koronki",
      1 => "kolvo_elementov",
      2 => "mocnosti",
      3 => "naznacenie",
      4 => "rabocaya_dlina",
      5 => "razmer_segmenta",
      6 => "tip_rezki",
      7 => "tip_sigmenta",
      8 => "tip_soedeninenia",
      9 => "",
    ),
    "FILTER_VIEW_MODE" => "VERTICAL",
    "GIFTS_DETAIL_BLOCK_TITLE" => "Выберите один из подарков",
    "GIFTS_DETAIL_HIDE_BLOCK_TITLE" => "N",
    "GIFTS_DETAIL_PAGE_ELEMENT_COUNT" => "3",
    "GIFTS_DETAIL_TEXT_LABEL_GIFT" => "Подарок",
    "GIFTS_MAIN_PRODUCT_DETAIL_BLOCK_TITLE" => "Выберите один из товаров, чтобы получить подарок",
    "GIFTS_MAIN_PRODUCT_DETAIL_HIDE_BLOCK_TITLE" => "N",
    "GIFTS_MAIN_PRODUCT_DETAIL_PAGE_ELEMENT_COUNT" => "3",
    "GIFTS_MESS_BTN_BUY" => "Выбрать",
    "GIFTS_SECTION_LIST_BLOCK_TITLE" => "Подарки к товарам этого раздела",
    "GIFTS_SECTION_LIST_HIDE_BLOCK_TITLE" => "N",
    "GIFTS_SECTION_LIST_PAGE_ELEMENT_COUNT" => "3",
    "GIFTS_SECTION_LIST_TEXT_LABEL_GIFT" => "Подарок",
    "GIFTS_SHOW_DISCOUNT_PERCENT" => "Y",
    "GIFTS_SHOW_IMAGE" => "Y",
    "GIFTS_SHOW_NAME" => "Y",
    "GIFTS_SHOW_OLD_PRICE" => "Y",
    "HIDE_NOT_AVAILABLE" => "N",
    "IBLOCK_ID" => "1",
    "IBLOCK_TYPE" => "catalog",
    "INCLUDE_SUBSECTIONS" => "Y",
    "INSTANT_RELOAD" => "Y",
    "LABEL_PROP" => "-",
    "LINE_ELEMENT_COUNT" => "3",
    "LINK_ELEMENTS_URL" => "link.php?PARENT_ELEMENT_ID=#ELEMENT_ID#",
    "LINK_IBLOCK_ID" => "",
    "LINK_IBLOCK_TYPE" => "",
    "LINK_PROPERTY_SID" => "",
    "LIST_BROWSER_TITLE" => "-",
    "LIST_META_DESCRIPTION" => "-",
    "LIST_META_KEYWORDS" => "-",
    "LIST_PROPERTY_CODE" => array(
      0 => "",
      1 => "VOSTANOVLENIE",
      2 => "",
    ),
    "MESSAGE_404" => "",
    "MESS_BTN_ADD_TO_BASKET" => "В корзину",
    "MESS_BTN_BUY" => "Купить",
    "MESS_BTN_COMPARE" => "Сравнение",
    "MESS_BTN_DETAIL" => "Подробнее",
    "MESS_NOT_AVAILABLE" => "Нет в наличии",
    "PAGER_BASE_LINK_ENABLE" => "N",
    "PAGER_DESC_NUMBERING" => "N",
    "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
    "PAGER_SHOW_ALL" => "N",
    "PAGER_SHOW_ALWAYS" => "N",
    "PAGER_TEMPLATE" => ".default",
    "PAGER_TITLE" => "Товары",
    "PAGE_ELEMENT_COUNT" => "30",
    "PARTIAL_PRODUCT_PROPERTIES" => "N",
    "PRICE_CODE" => array(
      0 => "base",
    ),
    "PRICE_VAT_INCLUDE" => "Y",
    "PRICE_VAT_SHOW_VALUE" => "N",
    "PRODUCT_ID_VARIABLE" => "id",
    "PRODUCT_PROPERTIES" => array(
    ),
    "PRODUCT_PROPS_VARIABLE" => "prop",
    "PRODUCT_QUANTITY_VARIABLE" => "",
    "SECTIONS_SHOW_PARENT_NAME" => "Y",
    "SECTIONS_VIEW_MODE" => "LIST",
    "SECTION_ADD_TO_BASKET_ACTION" => "ADD",
    "SECTION_BACKGROUND_IMAGE" => "-",
    "SECTION_COUNT_ELEMENTS" => "Y",
    "SECTION_ID_VARIABLE" => "SECTION_ID",
    "SECTION_TOP_DEPTH" => "2",
    "SEF_FOLDER" => "/directory/diamond-crown/",
    "SEF_MODE" => "Y",
    "SET_LAST_MODIFIED" => "N",
    "SET_STATUS_404" => "N",
    "SET_TITLE" => "Y",
    "SHOW_404" => "N",
    "SHOW_DEACTIVATED" => "N",
    "SHOW_DISCOUNT_PERCENT" => "N",
    "SHOW_OLD_PRICE" => "N",
    "SHOW_PRICE_COUNT" => "1",
    "SHOW_TOP_ELEMENTS" => "Y",
    "SIDEBAR_DETAIL_SHOW" => "Y",
    "SIDEBAR_PATH" => "",
    "SIDEBAR_SECTION_SHOW" => "Y",
    "TEMPLATE_THEME" => "blue",
    "TOP_ADD_TO_BASKET_ACTION" => "ADD",
    "TOP_ELEMENT_COUNT" => "9",
    "TOP_ELEMENT_SORT_FIELD" => "sort",
    "TOP_ELEMENT_SORT_FIELD2" => "id",
    "TOP_ELEMENT_SORT_ORDER" => "asc",
    "TOP_ELEMENT_SORT_ORDER2" => "desc",
    "TOP_LINE_ELEMENT_COUNT" => "3",
    "TOP_PROPERTY_CODE" => array(
      0 => "diametr_koronki",
      1 => "kolvo_elementov",
      2 => "naznacenie",
      3 => "razmer_segmenta",
      4 => "tip_rezki",
      5 => "tip_sigmenta",
      6 => "",
    ),
    "TOP_VIEW_MODE" => "SECTION",
    "USE_ALSO_BUY" => "N",
    "USE_BIG_DATA" => "Y",
    "USE_COMMON_SETTINGS_BASKET_POPUP" => "N",
    "USE_COMPARE" => "N",
    "USE_ELEMENT_COUNTER" => "Y",
    "USE_FILTER" => "Y",
    "USE_GIFTS_DETAIL" => "Y",
    "USE_GIFTS_MAIN_PR_SECTION_LIST" => "Y",
    "USE_GIFTS_SECTION" => "Y",
    "USE_MAIN_ELEMENT_SECTION" => "N",
    "USE_PRICE_COUNT" => "N",
    "USE_PRODUCT_QUANTITY" => "N",
    "USE_REVIEW" => "N",
    "USE_SALE_BESTSELLERS" => "Y",
    "USE_STORE" => "N",
    "SEF_URL_TEMPLATES" => array(
      "sections" => "",
      "section" => "#SECTION_ID#/",
      "element" => "#SECTION_ID#/#ELEMENT_ID#/",
      "compare" => "compare.php?action=#ACTION_CODE#",
      "smart_filter" => "#SECTION_ID#/filter/#SMART_FILTER_PATH#/apply/",
    ),
    "VARIABLE_ALIASES" => array(
      "compare" => array(
        "ACTION_CODE" => "action",
      ),
    )
  ),
  false
);?>

thanks in advance for your reply

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Burlaka, 2017-02-02
@dimasibirak

I can't figure out why it doesn't work

Decipher

I
Ivan Eremin, 2017-02-10
@divanus

Attached, but not that.
Describe what exactly doesn't work for you. For example, in my understanding, it doesn’t work: a site, a page, a display from an infoblock ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question