Answer the question
In order to leave comments, you need to log in
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
$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
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,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question