A
A
anriko2021-03-15 20:46:00
1C-Bitrix
anriko, 2021-03-15 20:46:00

Why is the filter results page in the directory 404?

The page with the filter
https://playmarketgames.ru/catalog/playstation/pla... nc
filter in the catalog component Url section for smart filter: #SECTION_CODE#/filter/#SMART_FILTER_PATH#/apply/
but instead of results 404

6050d7017fea2961336810.png

$arUrlRewrite=array (
  17 => 
  array (
    'CONDITION' => '#^={$arResult["FOLDER"].$arResult["URL_TEMPLATES"]["smart_filter"]."#actionbox"}\\??(.*)#',
    'RULE' => '&$1',
    'ID' => 'bitrix:catalog.smart.filter',
    'PATH' => '/bitrix/templates/concept_phoenix_s1/components/bitrix/catalog/catalog/section.php',
    'SORT' => 100,
  ),


$APPLICATION->IncludeComponent(
            "bitrix:catalog.smart.filter",
            "empty",
            array(
                "FILTER_HIDE_PRICE" => $filterHidePrice,
                "DATA_SHOW" => "catalog-filter",
                //"PREFILTER_NAME"=>"arrCatalogPreFilter",
                "FILTER_NAME" => "arrCatalogFilter",
                "TAB_FILTER" => $tabFilter,
                "CACHE_GROUPS" => "Y",
                "CACHE_TIME" => "36000000",
                "CACHE_TYPE" => "A",
                "CACHE_NOTES" => "",
                "COMPOSITE_FRAME_MODE" => "N",
                'CURRENCY_ID' => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["CATALOG"]["ITEMS"]['CURRENCY_ID']['VALUE'],
                "CONVERT_CURRENCY" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["CATALOG"]["ITEMS"]['CONVERT_CURRENCY']['VALUE']["ACTIVE"],
                "DISPLAY_ELEMENT_COUNT" => "Y",

                "FILTER_VIEW_MODE" => "vertical",
                "HIDE_NOT_AVAILABLE" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["CATALOG"]["ITEMS"]["HIDE_NOT_AVAILABLE"]["VALUE"],
                'HIDE_NOT_AVAILABLE_OFFERS' => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["CATALOG"]["ITEMS"]["HIDE_NOT_AVAILABLE_OFFERS"]["VALUE"],
                "IBLOCK_ID" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["CATALOG"]["IBLOCK_ID"],
                "IBLOCK_TYPE" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["CATALOG"]["IBLOCK_TYPE"],
                "PAGER_PARAMS_NAME" => "arrPager",
                "PRICE_CODE" => $PHOENIX_TEMPLATE_ARRAY["ITEMS"]["CATALOG"]["ITEMS"]['TYPE_PRICE']["VALUE_"],
                "SAVE_IN_SESSION" => "N",
                "SECTION_CODE" => "",
                "SECTION_DESCRIPTION" => "-",
                "SECTION_ID" => $ar_result["ID"],
                "SECTION_TITLE" => "-",
                "SEF_MODE" => "Y",
                "TEMPLATE_THEME" => "blue",
                "XML_EXPORT" => "Y",
                "INSTANT_RELOAD" => "Y",
                "SEF_RULE" => $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["smart_filter"] . "#actionbox",
                "SMART_FILTER_PATH" => $arResult["VARIABLES"]["SMART_FILTER_PATH"],
            ),
            $component
        );

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
ExtraD, 2021-03-16
@ExtraD

Hello, try deleting the entries regarding the filter from urlrewrire.php and re-save the filter component again. also check .htaccess for non-standard configuration. and here is the code from
urlrewrire.php on my site, just changed the path to section.php

'CONDITION' => '#^={$arResult["FOLDER"].$arResult["URL_TEMPLATES"]["smart_filter"]}\\??(.*)#',
    'RULE' => '&$1',
    'ID' => 'bitrix:catalog.smart.filter',
    'PATH' => '/bitrix/templates/concept_phoenix_s1/components/bitrix/catalog/catalog/section.php',
    'SORT' => 100,

A
anriko, 2021-03-16
@anriko

#SECTION_CODE_PATH#/ #SECTION_CODE#/ were not synced

Детальная информация:	      #SECTION_CODE_PATH#/#ELEMENT_CODE#/
Url раздела для умного фильтра: #SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/apply/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question