R
R
Rmonek2018-11-20 14:42:36
1C-Bitrix
Rmonek, 2018-11-20 14:42:36

How to display subcategory products on the 1s Bitrix page?

There is a catalog.
Categories are displayed on the left, products in the center. Everything is taken out. Using the CNC, each product has a link.
When you click on a product in the general list, you go to something like this link catalog/shkafy/shkafy_stellazhi/42614. But a page opens with the same list of products, but subdirectories appear in the sidebar of the catalog,
but the detailed view does not work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2018-11-20
@Rmonek

In Bitrix, in the infoblock, only the rules for generating urls for sections and elements of this infoblock are set.
The CNC rules themselves are configured in a complex component. And as I expected, they are different for you, which causes such behavior. You have #SECTION_CODE# in the path template, but it should be the same as in the infoblock settings #SECTION_CODE_PATH#
As it should be, at the very end of the file

"SEF_URL_TEMPLATES" => array(
      "sections" => "",
      "section" => "#SECTION_CODE_PATH#/",
      "element" => "#SECTION_CODE_PATH#/#ELEMENT_CODE#/",
      "compare" => "compare/",
      "smart_filter" => "#SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/apply/",
    )

R
Rmonek, 2018-11-20
@Rmonek

udjin123 ,KAxWvO5tM9Zpz2.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question