diff --git a/upload/admin/controller/payment/bitcoin.php b/upload/admin/controller/payment/bitcoin.php index ce43a6e..c50b339 100644 --- a/upload/admin/controller/payment/bitcoin.php +++ b/upload/admin/controller/payment/bitcoin.php @@ -57,7 +57,7 @@ private function validate() { public function index() { $this->load->language('payment/'.$this->payment_module_name); $this->load->model('setting/setting'); - + if (($this->request->server['REQUEST_METHOD'] == 'POST') && ($this->validate())) { $this->model_setting_setting->editSetting($this->payment_module_name, $this->request->post); $this->session->data['success'] = $this->language->get('text_success'); @@ -212,4 +212,11 @@ public function index() { $this->response->setOutput($this->render(TRUE), $this->config->get('config_compression')); } + + public function update_db() { + + $this->db->query("ALTER TABLE ". DB_PREFIX ."order ADD bitcoin_total DOUBLE AFTER currency_value;"); + $this->db->query("ALTER TABLE ". DB_PREFIX ."order ADD bitcoin_address VARCHAR(34) AFTER bitcoin_total;"); + + } }