grsinternet Posted November 7, 2020 Share Posted November 7, 2020 (edited) In PS 1.7.6 I need to order products by two parameters: 1. First goes products which are available in physical shop, then order the by price from low to high. 2. Then goes products which are NOT available in physical shop, then order the by price from low to high. In which file I can write my own ORDER BY rule to overwrite PS standard? SQL query should look like that in simple table ORDER BY `available` ASC, `price` ASC; But not sure in which Table I can find this or similar field to `available` (if stock>0) Thanks!! 😊💜🙏 Edited November 12, 2020 by grsinternet (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted November 12, 2020 Share Posted November 12, 2020 might it be the function getProducts() in classes/category.php? 1 Link to comment Share on other sites More sharing options...
grsinternet Posted November 12, 2020 Author Share Posted November 12, 2020 I have find out this - new updated faceted search module has this function integrated - products which has available stock can be ordered first! So this problem has been solved! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now