piku Posted April 28, 2014 Share Posted April 28, 2014 (edited) [Edited title]: how to control the sort order of manufacturers in the sidebar?(how can I edit a title of a post that I created?) In the left_column I use the manufacturers in text mode: "display manufacturers in a plain-text list." Now I want to give them a specific order.... how to do that? Whatever I do, they are in alphabetical order which is just a nuisance because I have to oblige to some priorities that are not at all represented by the starting letter of the name .... thx for any help, piku Edited April 28, 2014 by piku (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted April 28, 2014 Share Posted April 28, 2014 It's controlled by the Manufacturer Class, getManufacturers method: ORDER BY m.`name` ASC Link to comment Share on other sites More sharing options...
piku Posted April 28, 2014 Author Share Posted April 28, 2014 (edited) You are quick man! thx a lot... :-) piku p.s.: I don't find the manufacturer class, I typed it in the search (PS 1.6.) but no results ... Do I have to override a file to change the sort order? Edited April 28, 2014 by piku (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted April 28, 2014 Share Posted April 28, 2014 classes/manufacturer.php Link to comment Share on other sites More sharing options...
piku Posted April 28, 2014 Author Share Posted April 28, 2014 That seems seriously clumsy, but at least it's possible ... thx for your help and patience, piku Link to comment Share on other sites More sharing options...
piku Posted April 29, 2014 Author Share Posted April 29, 2014 Hello again! I thought this is solved but it isn't: 1. I copied the file Manufacturer.php from /classes to /override/classes 2. changed "ORDER BY m.`name` ASC" to ORDER BY m.`name` DESC" (also I tried "ORDER BY m.`id_manufacturer` ASC") 3. deleted /cache/class_index.php to make the override work the result is that nothing changed or happened. plz could you give me more information to change the sorting behaviour? I don't want to change the original file because it will be overwritten by the next update .... thx, piku Link to comment Share on other sites More sharing options...
vekia Posted April 29, 2014 Share Posted April 29, 2014 clear shop cache, this module uses caching system so i bet that you see "old" cached products feed (created with "ORDER BY m.`name` ASC") Link to comment Share on other sites More sharing options...
NemoPS Posted April 30, 2014 Share Posted April 30, 2014 Just to specify vekia's post a bit further, go to advanced parameters/performance and clear smarty cache using the button that you find there Link to comment Share on other sites More sharing options...
piku Posted May 6, 2014 Author Share Posted May 6, 2014 thk you both! it works now after that. solved, I guess ... with best regards, piku 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