antwake Posted June 16, 2014 Share Posted June 16, 2014 Is there a way to display the products in others ways than their IDs in the category page? I would like to display my products ordered by their manufacturers. (The option "Filter by category" in the back-office doesn't suit my needs) thanks! Link to comment Share on other sites More sharing options...
NemoPS Posted June 17, 2014 Share Posted June 17, 2014 In the back office? Catalog > manufactures > click on one of them Link to comment Share on other sites More sharing options...
antwake Posted June 17, 2014 Author Share Posted June 17, 2014 (edited) in the front-office If I click on a category, the displayed products are ordered by their IDs. I would like to order them by manufacturer Edited June 17, 2014 by antwake (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted June 18, 2014 Share Posted June 18, 2014 You have to modify Category::getProducts. FInd the main query and instead of $sql .= ' ORDER BY '.(!empty($order_by_prefix) ? $order_by_prefix.'.' : '').'`'.bqSQL($order_by).'` '.pSQL($order_way).' Use $sql .= ' ORDER BY m.manufacturer_name ASC'; Link to comment Share on other sites More sharing options...
Recommended Posts