Вывожу на главной компонент bitrix:catalog.section типа сделал блок "лучшие предложения" сделал свойство и по нему фильтрую, ниже код вывода компонента. Все элементы "Нет в наличии", хотя они есть, условие стоит if ($actualItem['CAN_BUY']) и шаблон одинаковый для основного каталога и этого блока, то есть это же самое условие в этом же файле проходит проверку нормально при стандартном выводе в главный каталог. Какая может быть причина?
[CODE]$GLOBALS['arrFilter'] = array("!PROPERTY_SPECIALOFFER" => false);
$APPLICATION->IncludeComponent(
"bitrix:catalog.section",
"product_col15",
array(
"IBLOCK_TYPE_ID" => "catalog",
"IBLOCK_ID" => IBLOCK_CATALOG_ID,
"BASKET_URL" => "/personal/cart/",
"COMPONENT_TEMPLATE" => "product_col15",
"IBLOCK_TYPE" => "catalog",
"SECTION_ID" => $_REQUEST["SECTION_ID"],
"SECTION_CODE" => "",
"SECTION_USER_FIELDS" => array(
0 => "",
1 => "",
),
"ELEMENT_SORT_FIELD" => "sort",
"ELEMENT_SORT_ORDER" => "desc",
"ELEMENT_SORT_FIELD2" => "id",
"ELEMENT_SORT_ORDER2" => "desc",
"FILTER_NAME" => "arrFilter",
"USE_FILTER" => "Y",
"INCLUDE_SUBSECTIONS" => "Y",
"SHOW_ALL_WO_SECTION" => "Y",
"HIDE_NOT_AVAILABLE" => "N",
"PAGE_ELEMENT_COUNT" => "5",
"LINE_ELEMENT_COUNT" => "3",
"PROPERTY_CODE" => array(
0 => "NEWPRODUCT",
1 => "",
),
"OFFERS_FIELD_CODE" => array(
0 => "",
1 => "",
),
"OFFERS_PROPERTY_CODE" => array(
0 => "COLOR_REF",
1 => "SIZES_SHOES",
2 => "SIZES_CLOTHES",
),
"OFFERS_SORT_FIELD" => "sort",
"OFFERS_SORT_ORDER" => "desc",
"OFFERS_SORT_FIELD2" => "id",
"OFFERS_SORT_ORDER2" => "desc",
"TEMPLATE_THEME" => "site",
"PRODUCT_DISPLAY_MODE" => "Y",
"ADD_PICT_PROP" => "MORE_PHOTO",
"LABEL_PROP" => array(
0 => "NEWPRODUCT",
),
"OFFER_ADD_PICT_PROP" => "-",
"OFFER_TREE_PROPS" => array(
0 => "COLOR_REF",
1 => "SIZES_SHOES",
2 => "SIZES_CLOTHES",
),
"PRODUCT_SUBSCRIPTION" => "N",
"SHOW_DISCOUNT_PERCENT" => "N",
"SHOW_OLD_PRICE" => "N",
"SHOW_CLOSE_POPUP" => "N",
"MESS_BTN_BUY" => "Купить",
"MESS_BTN_ADD_TO_BASKET" => "В корзину",
"MESS_BTN_SUBSCRIBE" => "Подписаться",
"MESS_BTN_DETAIL" => "Подробнее",
"MESS_NOT_AVAILABLE" => "Нет в наличии",
"SECTION_URL" => "",
"DETAIL_URL" => "",
"SECTION_ID_VARIABLE" => "SECTION_ID",
"SEF_MODE" => "N",
"AJAX_MODE" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_ADDITIONAL" => "",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "36000000",
"CACHE_GROUPS" => "Y",
"SET_TITLE" => "Y",
"SET_BROWSER_TITLE" => "N",
"BROWSER_TITLE" => "-",
"SET_META_KEYWORDS" => "Y",
"META_KEYWORDS" => "-",
"SET_META_DESCRIPTION" => "Y",
"META_DESCRIPTION" => "-",
"SET_LAST_MODIFIED" => "N",
"USE_MAIN_ELEMENT_SECTION" => "N",
"ADD_SECTIONS_CHAIN" => "N",
"CACHE_FILTER" => "N",
"ACTION_VARIABLE" => "action",
"PRODUCT_ID_VARIABLE" => "id",
"PRICE_CODE" => array(
0 => "Розничная цена",
),
"USE_PRICE_COUNT" => "N",
"SHOW_PRICE_COUNT" => "1",
"PRICE_VAT_INCLUDE" => "Y",
"CONVERT_CURRENCY" => "N",
"USE_PRODUCT_QUANTITY" => "N",
"PRODUCT_QUANTITY_VARIABLE" => "",
"ADD_PROPERTIES_TO_BASKET" => "Y",
"PRODUCT_PROPS_VARIABLE" => "prop",
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"PRODUCT_PROPERTIES" => array(
),
"OFFERS_CART_PROPERTIES" => array(
0 => "COLOR_REF",
1 => "SIZES_SHOES",
2 => "SIZES_CLOTHES",
),
"ADD_TO_BASKET_ACTION" => "ADD",
"PAGER_TEMPLATE" => "round",
"DISPLAY_TOP_PAGER" => "N",
"DISPLAY_BOTTOM_PAGER" => "N",
"PAGER_TITLE" => "Товары",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"PAGER_BASE_LINK_ENABLE" => "N",
"SET_STATUS_404" => "N",
"SHOW_404" => "N",
"MESSAGE_404" => "",
"COMPATIBLE_MODE" => "N",
"CUSTOM_FILTER" => "",
"HIDE_NOT_AVAILABLE_OFFERS" => "N",
"PROPERTY_CODE_MOBILE" => array(
),
"BACKGROUND_IMAGE" => "-",
"PRODUCT_ROW_VARIANTS" => "[{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false}]",
"ENLARGE_PRODUCT" => "STRICT",
"PRODUCT_BLOCKS_ORDER" => "price,props,sku,quantityLimit,quantity,buttons",
"SHOW_SLIDER" => "N",
"LABEL_PROP_MOBILE" => array(
),
"LABEL_PROP_POSITION" => "top-left",
"SHOW_MAX_QUANTITY" => "N",
"RCM_TYPE" => "personal",
"RCM_PROD_ID" => $_REQUEST["PRODUCT_ID"],
"SHOW_FROM_SECTION" => "N",
"DISPLAY_COMPARE" => "N",
"USE_ENHANCED_ECOMMERCE" => "N",
"LAZY_LOAD" => "N",
"LOAD_ON_SCROLL" => "N",
"DISABLE_INIT_JS_IN_COMPONENT" => "N"
),
false
);?>
[/CODE]