mirni Posted April 8, 2013 Share Posted April 8, 2013 (edited) Hi! Right now in my admin panel, when I select products they show by id (ascending). Which file must I modify to make the products show descending? that is, from newest to oldest. I do not talk about front-end products' order, just the backend. Please,help me! Edited April 9, 2013 by mirni (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 9, 2013 Share Posted April 9, 2013 you can change order in back office without core changes Link to comment Share on other sites More sharing options...
mirni Posted April 9, 2013 Author Share Posted April 9, 2013 yes, but I want to always see it in that order, just want to change "asc" for "desc" wherever that code is located, that's what I try to find out Link to comment Share on other sites More sharing options...
vekia Posted April 9, 2013 Share Posted April 9, 2013 which version of PS you use? Link to comment Share on other sites More sharing options...
mirni Posted April 9, 2013 Author Share Posted April 9, 2013 The latest version. Nevermind, the issue is solved and I'll write the solution right here just in case somebody else needs it. Go to classes/controller/AdminController.php find protected $_defaultOrderWay = 'ASC'; change to protected $_defaultOrderWay = 'DESC'; This ill change default sorting from ascending to descending Thank everyone for being always attentive and supportive! Link to comment Share on other sites More sharing options...
vekia Posted April 10, 2013 Share Posted April 10, 2013 thanks for sharing the solution, im convinced that it will be really helpfull for other community members i can go ahead and mark this thread as solved regards Link to comment Share on other sites More sharing options...
orygamy Posted June 10, 2015 Share Posted June 10, 2015 (edited) In prestashop 1.6 go to classes/controller/AdminController.php findprotected $_defaultOrderWay = 'ASC';change toprotected $_defaultOrderWay = 'DESC'; Edited November 6, 2015 by orygamy (see edit history) 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