arapogiannis Posted March 8, 2017 Share Posted March 8, 2017 Hello there, i need to set a custom order for products in Manufacturers Page. Is there a way to do it by modifying anything? I see it sorts by name by default. Is there a paid plugin that does the work as well? Thank you, Link to comment Share on other sites More sharing options...
BalzoT Posted March 8, 2017 Share Posted March 8, 2017 Every grid has a controller for it. Although to change the sorting you will have to override the class that is used to retrieve the items. So I'm guessing the Manufacturers class is the one you need to override Link to comment Share on other sites More sharing options...
arapogiannis Posted March 8, 2017 Author Share Posted March 8, 2017 Hello, unlikely the manufacturers.php file in classes only controls the appearence of how manufacturers are retrieved and not the products inside those manufacturers. I am trying to find it but i can't. Link to comment Share on other sites More sharing options...
BalzoT Posted March 9, 2017 Share Posted March 9, 2017 Sry I missunderstood your question! The category class is about the grids and how the products are retrieved. Link to comment Share on other sites More sharing options...
arapogiannis Posted March 13, 2017 Author Share Posted March 13, 2017 Yes but this category is handled differently than all others. I am sorting all other as i want via the controller but not this one.. Link to comment Share on other sites More sharing options...
BalzoT Posted March 15, 2017 Share Posted March 15, 2017 I checked the manufacturers controller and class and as I can see the method that is called to retrieve the products is the getProducts() from the manufacturers class. There you can add the coded needed for your custom ordering in the sql query 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