Installazione acquario: come trovare esperti di acquari
Come Trovare un Professionista per l'Installazione di un Acquario.
Consigli per Trovare un Efficace Installatore di Acquari.
Scopri come trovare il professionista ideale per l'installazione di un acquario, esplorando suggerimenti pratici e consigli utili. Che tu stia cercando un esperto per un acquario domestico o commerciale, il nostro articolo ti guiderà nella scelta del miglior servizio disponibile, garantendo un'esperienza soddisfacente e di qualità .
Trova professionisti vicino a te
Trova professionisti
db->select('orders.*, restaurants.name AS restaurant_name, restaurants.address AS restaurant_address, restaurants.image AS restaurant_image');
$this->db->from('orders');
$this->db->join('restaurants', 'restaurants.id = orders.restaurant_id');
$this->db->where('orders.status !=', 4);
$this->db->order_by('orders.id', 'desc');
$query = $this->db->get();
return $query->result();
}
// get the order details
public function get_order_details($order_id)
{
$this->db->select('orders.*, restaurants.name AS restaurant_name, restaurants.address AS restaurant_address, restaurants.image AS restaurant_image, restaurants.contact_person AS contact_person, restaurants.mobile_number AS mobile_number, restaurants.phone_number AS phone_number');
$this->db->from('orders');
$this->db->join('restaurants', 'restaurants.id = orders.restaurant_id');
$this->db->where('orders.id', $order_id);
$query = $this->db->get();
return $query->row();
}
// get the order items
public function get_order_items($order_id)
{
$this->db->select('order_items.*, items.name AS item_name');
$this->db->from('order_items');
$this->db->join('items', 'items.id = order_items.item_id');
$this->db->where('order_items.order_id', $order_id);
$query = $this->db->get();
return $query->result();
}
// get the order notes
public function get_order_notes($order_id)
{
$this->db->select('order_notes.*');
$this->db->from('order_notes');
$this->db->where('order_notes.order_id', $order_id);
$query = $this->db->get();
return $query->result();
}
// get the order payment
public function get_order_payment($order_id)
{
$this->db->select('order_payments.*');
$this->db->from('order_payments');
$this->db->where('order_payments.order_id', $order_id);
$query = $this->db->get();
return $query->row();
}
// update the order status
public function update_order_status($order_id, $data)
{
$this->db->where('id', $order_id);
$this->db->update('orders', $data);
return $this->db->affected_rows();
}
}