Z
Z
z_u_l2018-07-17 20:07:13
1C-Bitrix
z_u_l, 2018-07-17 20:07:13

How not to display items that are out of stock smart.filte?

There is an item "dimensions" in the smart filter. For example, if you select the size XXXL in the filter, then there will be a product, although this size is not available (this product has zero stock).
In the component, the HIDE_NOT_AVAILABLE option is enabled. But it still displays the size that does not exist. What else could there be?
'HIDE_NOT_AVAILABLE' => "Y"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2018-07-17
@babarun

Add an item change handler that will sum up all stock balances and write this number to the stock of the item itself (If you do not have inventory control enabled, then the exact balance will be calculated based on the posting of documents).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question