Answer the question
In order to leave comments, you need to log in
How to configure the CNC of the bitrix:catalog.store component?
Good afternoon. Tell me who knows how to properly configure the CNC for the bitrix:catalog.store component.
There is the following structure:
Page with the component: /storages/index.php
When you go to the addresses site.ru/storages/index.php and site.ru/storages/ the component opens with a list of warehouses.
When you navigate through any of the warehouses, the list of warehouses opens again, but the link changes to site.ru/storages/1/
My component settings
<?$APPLICATION->IncludeComponent(
"bitrix:catalog.store",
".default",
array(
"COMPONENT_TEMPLATE" => ".default",
"SEF_MODE" => "Y",
"SEF_FOLDER" => "/storages",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "3600",
"PHONE" => "Y",
"SCHEDULE" => "Y",
"SET_TITLE" => "Y",
"TITLE" => "Список складов с подробной информацией",
"MAP_TYPE" => "0",
"COMPOSITE_FRAME_MODE" => "A",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"SEF_URL_TEMPLATES" => array(
"liststores" => "/storages",
"element" => "/#store_id#/",
)
),
false
);?>
Answer the question
In order to leave comments, you need to log in
I'll post the answer from the comments here. to be immediately visible.
Many thanks Sergey ! He correctly suggested.
"SEF_FOLDER" => "/storages", replace with "SEF_FOLDER" => "/storages/",
In Bitrix you need to specify a slash at the end for folders
Accordingly
"SEF_URL_TEMPLATES" => array(
"liststores" => "",
"element " => "#store_id#/",
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question