Jump to content

Sort Order detail by product name in BO


Micke21

Recommended Posts

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

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

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...