poma1

model change

Oct 24th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.90 KB | None | 0 0
  1.  public function updateOrderChange($order_id, $data) {
  2.  
  3.         $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'] . "'";
  4.          print_r($sql); die;
  5.         $this->db->query($sql);
  6.  
  7.     }
  8.     public function getOrderZone() {
  9.         $query = $this->db->query("SELECT  * FROM " .DB_PREFIX."zone");
  10.        //print_r($query); die();
  11.         return $query->rows;
  12.     }
  13.     public function getCodeNovaposhtaCities($shipping_zone){
  14.         $query = $this->db->query("SELECT  * FROM `" .DB_PREFIX."novaposhta_cities`");
  15.         //print_r($query);die;
  16.         return $query->rows;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment