Skip to content

How can I sort is not saleable products in the end of category

I need products that are out of stock (!$_product->isSaleable()) to be displayed at the end of the category list in the catalog (frontend part)

Magento v 2.4.2