Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function updateOrderChange($order_id, $data) {
- $sql = "UPDATE `" . DB_PREFIX . "order` SET telephone = '" . $this->db->escape($data['telephone']) . "', payment_address_1 = '" . ($data['payment_address_1']). "', shipping_city = '" . ($data['shipping_city']). "', shipping_zone = '" . ($data['shipping_zone']) . "', shipping_firstname = '" . ($data['shipping_firstname']) . "' WHERE order_id = '" . (int)$data['order_id'] . "'";
- print_r($sql); die;
- $this->db->query($sql);
- }
- public function getOrderZone() {
- $query = $this->db->query("SELECT * FROM " .DB_PREFIX."zone");
- //print_r($query); die();
- return $query->rows;
- }
- public function getCodeNovaposhtaCities($shipping_zone){
- $query = $this->db->query("SELECT * FROM `" .DB_PREFIX."novaposhta_cities`");
- //print_r($query);die;
- return $query->rows;
- }
Advertisement
Add Comment
Please, Sign In to add comment