T
T
timers2017-08-09 09:37:52
1C-Bitrix
timers, 2017-08-09 09:37:52

How to make a product not appear in the catalog?

Hello.
I have a small business editorial office, the question is: how to make products that are out of stock not displayed in the catalog, but indexed by search engines?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Pavlov, 2017-08-09
@Ifelseapps

Set a filter on the catalog.section component.
Filter example:

array(
    '>CATALOG_QUANTITY' => 0
)

Write this filter to a global variable and pass the name of this variable to the FILTER_NAME parameter when calling the component.
Thus, these products will not be shown in the list of products, but will be available via a direct link.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question