M
M
Maxim E2015-03-13 15:55:49
PHP
Maxim E, 2015-03-13 15:55:49

How to search for a product in the 1C-Bitrix catalog within one category?

Good afternoon!
There is a form

<form action="/catalog/">
          <input type="text" class="bx_input_text" autocomplete="off" maxlength="300" size="300" value="" name="q" placeholder="Для оптимального подбора укажите наименование запчасти или её оригинальный номер" id="title-search-input">
          <input type="submit" class="bx_input_submit" value="" name="s">
</form>

it is necessary to search only in a certain category of the directory. There may be additional options, for example:
  • Category ID to search
  • Search category slug
  • Category name to search

Please advise

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Grechushnikov, 2015-03-13
@creativeworm

section_id

N
Nikita, 2015-03-13
@Rema1ns

your approach is not correct, you are using a form from the standard site search component, but you need to use the search for elements in the catalog
In the search component, specify 2 fields - section and name, make the section field hidden and static, you
also need to specify the filter name in both components.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question