A
A
Alexander2021-03-24 10:13:27
1C-Bitrix
Alexander, 2021-03-24 10:13:27

What could be the problem of a non-working CNC Bitrix catalog?

There is a Bitrix catalog.
Standard rules are written:
for the section: #SECTION_CODE_PATH#/
detailed information: #SECTION_CODE_PATH#/#ELEMENT_CODE#/
smart filter: #SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/apply/

The CNC itself works, everything is ok.
But the filter doesn't work, it just doesn't filter, but refreshes the page, resetting the selection in the filter.

If you turn off the CNC, then the filter filters everything.

Who faced? Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2021-03-25
@winer

1) Check your browser console. Primary processing takes place on js, if there are problems, then it can fall off.
2) When changing the parameters in the form, the filter sends an ajax request. In response, an array will be received, one of the parameters of which will be the url on which the transition should be made, for proper filtering. See what comes there and whether there is a further transition to this url
3) The catalog.smart.filter component must be called before the catalog.section component.
4) If the page URL changes, check the global array with the filter that forms the catalog.smart.filter component. The name of this global array is specified in the FILTER_NAME component parameter. Also, this name must match the one specified below in the catalog.section component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question