UKclearancecentre Posted May 19, 2009 Share Posted May 19, 2009 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 More sharing options...
soju Posted May 20, 2009 Share Posted May 20, 2009 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 More sharing options...
UKclearancecentre Posted May 20, 2009 Author Share Posted May 20, 2009 Yes that seems to have worked thanks. Link to comment Share on other sites More sharing options...
Okidoki Posted July 19, 2012 Share Posted July 19, 2012 Thank you. Really helped. 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