Jump to content

Order products by two parameters [solved]


grsinternet

Recommended Posts

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 by grsinternet (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...