Micke21 Posted May 20, 2017 Share Posted May 20, 2017 hi there, i want to sort the order detail in bo by product_name but i don't find where is the code for. I try to modify all query in class order with order by product_name. Could you help me ? Thanks Micke Link to comment Share on other sites More sharing options...
shokinro Posted May 20, 2017 Share Posted May 20, 2017 Have you tried modifying following code in OrderDetail.php file? public static function getList($id_order) { return Db::getInstance()->executeS('SELECT * FROM `'._DB_PREFIX_.'order_detail` WHERE `id_order` = '.(int)$id_order); } Link to comment Share on other sites More sharing options...
Micke21 Posted May 21, 2017 Author Share Posted May 21, 2017 Have you tried modifying following code in OrderDetail.php file? public static function getList($id_order) { return Db::getInstance()->executeS('SELECT * FROM `'._DB_PREFIX_.'order_detail` WHERE `id_order` = '.(int)$id_order); } hi, i have already try this public static function getList($id_order) { return Db::getInstance()->executeS('SELECT * FROM `'._DB_PREFIX_.'order_detail` WHERE `id_order` = '.(int)$id_order.' order by product_name'); } but the order detail don't change, i don't understand 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