A
A
Andrey2017-07-25 17:34:31
PHP
Andrey, 2017-07-25 17:34:31

How to make the search search by product id 1c bitrix?

how can I make it so that in the search for a site, on 1c bitrix it would be possible to find by product id?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artyom Luchnikov, 2017-07-25
@lu4nik

Alternatively, check the query on the search page. If the request contains a number (is_numeric($_GET['q'] === true), then display the catalog.section component with a filter by this product id. If the request contains no number, then let the page work as before.

A
Anatoly Kirsanov, 2017-07-25
@bitrixworkshop

If you search using the search module, then you need to find an event (it exists, too lazy to look) that is called when an index is created on an element and add an ID to it. Then it will be possible to find it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question