F
F
fenix19902018-10-04 13:02:10
1C-Bitrix
fenix1990, 2018-10-04 13:02:10

The list of related items displays all the products from the catalog in general, how to fix it?

in the news infoblock added a multiple property binding to elements
in the news added various products from the catalog.
in the detail, I displayed the component a list of related items and set the Property in which the link is stored: what was indicated in the News info block ATT_another_items
but shows in general all products from the catalog and not linked
, here is the code itself

<?$APPLICATION->IncludeComponent(
  "bitrix:catalog.link.list", 
  ".default", 
  array(
    "ACTION_VARIABLE" => "action",
    "ADD_PICT_PROP" => "-",
    "ADD_TO_BASKET_ACTION" => "ADD",
    "AJAX_MODE" => "N",
    "AJAX_OPTION_ADDITIONAL" => "",
    "AJAX_OPTION_HISTORY" => "N",
    "AJAX_OPTION_JUMP" => "N",
    "AJAX_OPTION_STYLE" => "Y",
    "BASKET_URL" => "/personal/basket.php",
    "CACHE_FILTER" => "N",
    "CACHE_GROUPS" => "Y",
    "CACHE_TIME" => "300",
    "CACHE_TYPE" => "A",
    "COMPATIBLE_MODE" => "Y",
    "CONVERT_CURRENCY" => "N",
    "DETAIL_URL" => "",
    "DISPLAY_BOTTOM_PAGER" => "Y",
    "DISPLAY_COMPARE" => "N",
    "DISPLAY_TOP_PAGER" => "N",
    "ELEMENT_ID" => $arResult["ID"],
    "ELEMENT_SORT_FIELD" => "sort",
    "ELEMENT_SORT_FIELD2" => "id",
    "ELEMENT_SORT_ORDER" => "asc",
    "ELEMENT_SORT_ORDER2" => "desc",
    "FILTER_NAME" => "",
    "HIDE_NOT_AVAILABLE" => "N",
    "HIDE_NOT_AVAILABLE_OFFERS" => "N",
    "IBLOCK_ID" => "2",
    "IBLOCK_TYPE" => "catalog",
    "LABEL_PROP" => "-",
    "LINK_PROPERTY_SID" => "ATT_another_items",
    "MESS_BTN_ADD_TO_BASKET" => "В корзину",
    "MESS_BTN_BUY" => "Купить",
    "MESS_BTN_DETAIL" => "Подробнее",
    "MESS_NOT_AVAILABLE" => "Нет в наличии",
    "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" => "9",
    "PRICE_CODE" => array(
      0 => "BASE",
    ),
    "PRICE_VAT_INCLUDE" => "Y",
    "PRODUCT_ID_VARIABLE" => "id",
    "PROPERTY_CODE" => array(
      0 => "",
      1 => "",
    ),
    "SECTION_ID_VARIABLE" => "SECTION_ID",
    "SECTION_URL" => "",
    "SET_LAST_MODIFIED" => "N",
    "SET_TITLE" => "N",
    "SHOW_CLOSE_POPUP" => "N",
    "SHOW_DISCOUNT_PERCENT" => "N",
    "SHOW_OLD_PRICE" => "N",
    "SHOW_PRICE_COUNT" => "1",
    "TEMPLATE_THEME" => "blue",
    "USE_PRICE_COUNT" => "N",
    "COMPONENT_TEMPLATE" => ".default"
  ),
  false
);?>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question