I want to always sort products in the catalog category view by is_saleable attribute. Firstly should show saleable products, later not saleable.

I tried add

$this->getSelect()->order("is_saleable " . 'DESC');



event but it not works

It may be important that I have https://github.com/Smile-SA/smile-magento-elasticsearch module.

Thank you for your help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.