Answer the question
In order to leave comments, you need to log in
How to filter products by subsection using smart filter (without adding a property)?
Good afternoon!
There was a need to refine the smart filter so that it filters not only by properties, but also by product subcategories. For example, there is a category Frying pans, subcategories - pancake pans, cast iron pans, etc.
By default, the smart filter does not filter by category. I tried to separately add to the form the previously received list of the necessary subcategories for selection and in the NEXT_SMART_FILTER array I added an array of conditions array('SECTION_ID' => '$_GET['sect_id']', 'INCLUDE_SUBSECTIONS'=>'Y'). Separately, all this works, but how beautifully and competently to add this array to the filter? Or perhaps there are other solutions to this problem?
In Google, I came across options only through the creation of a property (in this project, this option is not suitable). I also tried to send via $_GET, but the component is updated a couple of times (I look at the logs, the component works twice, and the second time all my values are already empty), follows the link /filter/#SMART_FILTER_PATH#/apply and all my variables are lost.
I would be very grateful for your help.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question