Franklin Posted December 14, 2015 Share Posted December 14, 2015 Hello. I need to list the products purchased by customers, also in order (alphabetical) manufacturers, I could already list the manufacturers in a column using the following: In view.tlp file add : <th> <span class = "title_box"> {ls = 'Manufacturer'} </ span> </ th> After on _product_line.tpl, add: <td> {:: Manufacturer getnamebyid ($ product.id_manufacturer)} </ td> With this, i list the name of the manufacturers, but right now, I need to put a link on the column headings to sort the product list by product name or by manufacturer name. I appreciate any help Link to comment Share on other sites More sharing options...
Franklin Posted December 15, 2015 Author Share Posted December 15, 2015 Anyone? plz! Link to comment Share on other sites More sharing options...
tmzwinkels Posted December 15, 2015 Share Posted December 15, 2015 You might need to update or override AdminOrdersController in controllers/admin , at the moment it seems $this->_orderBy = 'id_order'; 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