1. добавляем в api/Orders.php в ф-ю get_orders ПОСЛЕ
$id_filter = '';
код
$date_from = '';
$date_to = '';
$order_by = '';
2. добавить в api/Orders.php в ф-ю get_orders фильтры (примерно 60я строка)
/***************************/
if($filter['order_by']==1)
$order_by = $this->db->placehold('ORDER BY id ASC');
else
$order_by = $this->db->placehold('ORDER BY id DESC');
if(isset($filter['date_from']))
$date_from = $this->db->placehold('AND DATE(o.date) >= ?', $filter['date_from']);
if(isset($filter['date_to']))
$date_to = $this->db->placehold('AND DATE(o.date) <