Jump to content

Sort products in front office by stock level


Recommended Posts

Hi, I want to be able to set the front office to show the products that are 'in-stock" at the top of the list.

I know there is a drop down box to select this but i can't see to find how to set it to do this as the default option.

I think it may need something changing in the product-sort.php file but i cannot figure out what. Any help would be appreciated.

Link to comment
Share on other sites

You can set a default sort order in the products preferences, but obviously there is a little bug because quantity does not appear in the select list.

I think you can modify product-sort.php (line 6) like this :

$orderBy = 'quantity';

Link to comment
Share on other sites

  • 3 years later...

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...