M
M
Mad-medved2018-10-12 16:03:28
1C-Bitrix
Mad-medved, 2018-10-12 16:03:28

How to transfer "Smart Filter" in Bitrix?

There was a problem with moving the Smart Filter, which is displayed through the bitrix:catalog component. This filter is displayed automatically on the right side of the include area along with the info block sections on how to display it on the included area of ​​the general site template. Bitrix official technical support was unable to provide assistance in this matter.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Kharchevnikov, 2018-10-15
@Mad-medved

Copy the smart filter component to your template.
Find the folder with the smart filter in your template (\templates\template_name
\components\bitrix\catalog.smart.filter\.default) open template.php
Find the div from which the layout of the smart filter starts and insert the wrapper
<?$this- >SetViewTarget("left_area");?>
Find the end of the smart filter layout and close the wrapper
<?$this->EndViewTarget("left_area");?>
Go to the place where you want to display the smart filter, for example in sidebar.php (or header.php) and call the wrapper in which we wrapped the smart filter
<?$APPLICATION->ShowViewContent("left_area")?>

A
Alexander, 2018-10-12
@idruweb

use deferred functions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question