M
M
Maxim Tkachev2022-03-13 15:02:54
1C-Bitrix
Maxim Tkachev, 2022-03-13 15:02:54

How to set up CNC catalog.section?

Complex component NEWS - displays a list of stocks. On the promotion detail - the list of products from the promotion catalog.section
there is a filter by product categories. when applying the filter, the URL is /customers/promo / domashniy -bbq/?type-of-product=product &
type-of-pivo=pivo pivo=section_name

$APPLICATION->IncludeComponent(
                                    "bitrix:catalog.section",
                                    ".default",
                                    array(
                                        "GTM_PAGE_TYPE"                   => "articles",
                                        "ACTION_VARIABLE"                 => "action",
                                        "ADD_PROPERTIES_TO_BASKET"        => "Y",
                                        "ADD_SECTIONS_CHAIN"              => "N",
                                        "AJAX_MODE"                       => "N",
                                        "AJAX_OPTION_ADDITIONAL"          => "",
                                        "AJAX_OPTION_HISTORY"             => "N",
                                        "AJAX_OPTION_JUMP"                => "N",
                                        "AJAX_OPTION_STYLE"               => "Y",
                                        "BACKGROUND_IMAGE"                => "-",
                                        "BASKET_URL"                      => "/personal/basket.php",
                                        "BROWSER_TITLE"                   => "-",
                                        "CACHE_FILTER"                    => "N",
                                        "CACHE_GROUPS"                    => "N",
                                        "CACHE_TIME"                      => "36000000",
                                        "CACHE_TYPE"                      => "A",
                                        "CONVERT_CURRENCY"                => "N",
                                        "DETAIL_URL"                      => "",
                                        "DISABLE_INIT_JS_IN_COMPONENT"    => "N",
                                        "DISPLAY_BOTTOM_PAGER"            => "Y",
                                        "DISPLAY_TOP_PAGER"               => "N",
                                        "ELEMENT_SORT_FIELD"              => ($arParams["ELEMENT_SORT_FIELD"] == 'price') ? $priceBitrixName : $arParams["ELEMENT_SORT_FIELD"],
                                        "ELEMENT_SORT_ORDER"              => $arParams["ELEMENT_SORT_ORDER"],
                                        "ELEMENT_SORT_FIELD2"             => "name",
                                        "ELEMENT_SORT_ORDER2"             => "asc",
                                        "FILTER_NAME"                     => "promoProductsFilter",
                                        "HIDE_NOT_AVAILABLE"              => "N",
                                        "IBLOCK_ID"                       => IBLOCK_ID_catalog,
                                        "IBLOCK_TYPE"                     => "catalog",
                                        "INCLUDE_SUBSECTIONS"             => "Y",
                                        "LINE_ELEMENT_COUNT"              => "3",
                                        "MESSAGE_404"                     => "",
                                        "META_DESCRIPTION"                => "-",
                                        "META_KEYWORDS"                   => "-",
                                        "OFFERS_LIMIT"                    => "5",
                                        "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"                  => "show-more-promo",
                                        "PAGER_TITLE"                     => "Товары",
                                        "PAGE_ELEMENT_COUNT"              => "6",
                                        "PARTIAL_PRODUCT_PROPERTIES"      => "N",
                                        "PRICE_CODE"                      => array(
                                            0 => REGION_PRICE,
                                        ),
                                        "PRICE_VAT_INCLUDE"               => "Y",
                                        "PRODUCT_ID_VARIABLE"             => "id",
                                        "PRODUCT_PROPERTIES"              => array(),
                                        "PRODUCT_PROPS_VARIABLE"          => "prop",
                                        "PRODUCT_QUANTITY_VARIABLE"       => "",
                                        "PROPERTY_CODE"                   => array(
                                            0  => "TYPE",
                                            1  => "COLOR",
                                            2  => "SUGAR",
                                            3  => "COUNTRY",
                                            4  => "ALCO",
                                            5  => "BLOG_POST_ID",
                                            6  => "ARTICLE",
                                            7  => "EXTRACTION",
                                            8  => "GASTRONOMIC_LINE",
                                            9  => "BLOG_COMMENTS_CNT",
                                            10 => "RUSSIAN_NAME",
                                            11 => "TEXTS_ABOUT_THIS",
                                            12 => "SET_DESCRIPTION",
                                            13 => "PRODUCER",
                                            14 => "PRODUCTION",
                                            15 => "AVAILABILITY",
                                            16 => "FACTS",
                                            17 => "YEAR",
                                            18 => "GRAPE",
                                            19 => "VALUE",
                                            20 => "RP_RATING",
                                            21 => "WS_RATING",
                                            22 => "COMPOSITION",
                                            23 => "SET_BACKGROUND",
                                            24 => "EXCLUSIVE",
                                        ),
                                        "SECTION_CODE"                    => "",
                                        "SECTION_ID"                      => "",
                                        "SECTION_ID_VARIABLE"             => "SECTION_ID",
                                        "SECTION_URL"                     => "",
                                        "SECTION_USER_FIELDS"             => array(
                                            0 => "",
                                            1 => "",
                                        ),
                                        "SEF_MODE"                        => "N",
                                        "SET_BROWSER_TITLE"               => "Y",
                                        "SET_LAST_MODIFIED"               => "N",
                                        "SET_META_DESCRIPTION"            => "Y",
                                        "SET_META_KEYWORDS"               => "Y",
                                        "SET_STATUS_404"                  => "N",
                                        "SET_TITLE"                       => "Y",
                                        "SHOW_404"                        => "N",
                                        "SHOW_ALL_WO_SECTION"             => "Y",
                                        "SHOW_PRICE_COUNT"                => "1",
                                        "USE_MAIN_ELEMENT_SECTION"        => "N",
                                        "USE_PRICE_COUNT"                 => "N",
                                        "USE_PRODUCT_QUANTITY"            => "N",
                                        "COMPONENT_TEMPLATE"              => ".default",
                                        "REGION_ID"                       => GeoServices::getRegionElementIDStatic(),
                                        "PRODUCTS_BY_ACTIONS"             => 'Y',
                                        'COMPOSITE_FRAME_MODE'            => 'A',
                                        'COMPOSITE_FRAME_TYPE'            => 'DYNAMIC_WITH_STUB_LOADING',
                                        "SHOP_ID"                         => Shop::getCurrentXmlID(),
                                    ),
                                    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