S
S
Sergey Valitov2020-06-14 11:33:20
1C-Bitrix
Sergey Valitov, 2020-06-14 11:33:20

How to make your cnc in Bitrix?

Hello. I have such a task, there is a directory with elements. CNC view:
/catalog/#SECTION_CODE_PATH#/ - sections
/catalog/#SECTION_CODE_PATH#/#ELEMENT_CODE#/ - element

Each element has a BRAND property and I want the CNC to start with the value of the property, for example:
/catalog/ADIDAS/ #SECTION_CODE_PATH#/ , and so that being in this section directories and elements are displayed in which, for example, there is an ADIDAS brand, etc. How to set up the CNC, accept this brand, and filter the catalog output by this property, maybe someone knows?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-06-15
@anton99zel

there is a BRAND property

filter the output

Create folders with Brands, link to these sections in the current elements:
Next in the catalog:
"SEF_URL_TEMPLATES" => array(
      "sections" => "",
      "section" => "#SECTION_CODE_PATH#/",
      "element" => "#SECTION_CODE_PATH#/#ELEMENT_CODE#/",
      "smart_filter" => "#SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/",
    ),

To filter in the catalog, enable display in the smart filter for the property.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question