P
P
photosho2017-05-18 11:45:05
1C-Bitrix
photosho, 2017-05-18 11:45:05

How to implement a catalog search?

There is a page with a "catalog" component and a search for "catalog.search" in the popup at the top of the page. When you click on the "Find" button, the directory remains untouched, and the search results are displayed in a pop-up window directly below the search component. How to properly implement a search so that its results affect the main catalog component?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2017-05-18
@photosho

In order to implement it correctly, you need to understand how catalog.search works - the entered search query is sent to the search module, and an array of IDs of infoblock elements (products) is returned from it, which is already fed to the catalog.section component (without s !).

and the search results are displayed in a popup right below the search component
- you mean hints?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question