Answer the question
In order to leave comments, you need to log in
How to display products that are not in stock at the end of the bitrix catalog?
I want to display the goods sorted by price, but those that are not in stock at the end, I tried using CATALOG_QUANTITY, but apparently the quantity is taken into account, but I need it by availability
Answer the question
In order to leave comments, you need to log in
If you put down a property along with zero availability, for example NOSKLAD, then you can sort by
availability If there are no products, they are displayed at the end.
$arSort = array("PROPERTY_NOSKLAD"=>"ASC", "PROPERTY_PRIORITET"=>"DESC", "shows"=>"DESC");
In the catalog component settings, make the first sort direction by CATALOG_AVAILABLE
CATALOG_AVAILABLE - product availability indicator (Y|N). A product is considered unavailable if its quantity is less than or equal to zero, quantitative accounting is enabled and purchase is prohibited at zero quantity
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question