Post by zapper4444 » Wed Oct 11, 2017 6:34 am

Hello all i install opencart with a Prefix of oc_ and i change the Prefix to blank and then gone in to the all the models and rename all DB with the oc_ now wont grab from DB



$this->db->query("INSERT INTO `" . DB_PREFIX . "oc_realex_order` SET `order_id` = '" . (int)$order_info['order_id'] . "', `settle_type` = '" . (int)$this->config->get('payment_realex_auto_settle') . "', `order_ref` = '" . $this->db->escape($order_ref) . "', `order_ref_previous` = '" . $this->db->escape($order_ref) . "', `date_added` = now(), `date_modified` = now(), `capture_status` = '" . (int)$settle_status . "', `currency_code` = '" . $this->db->escape($order_info['currency_code']) . "', `pasref` = '" . $this->db->escape($pas_ref) . "', `pasref_previous` = '" . $this->db->escape($pas_ref) . "', `authcode` = '" . $this->db->escape($auth_code) . "', `account` = '" . $this->db->escape($account) . "', `total` = '" . $this->currency->format($order_info['total'], $order_info['currency_code'], $order_info['currency_value'], false) . "'");

return $this->db->getLastId();
}

public function addTransaction($realex_order_id, $type, $order_info) {
$this->db->query("INSERT INTO `" . DB_PREFIX . "oc_realex_order_transaction` SET `realex_order_id` = '" . (int)$realex_order_id . "', `date_added` = now(), `type` = '" . $this->db->escape($type) . "', `amount` = '" . $this->currency->format($order_info['total'], $order_info['currency_code'], $order_info['currency_value'], false) . "'");
}

Newbie

Posts

Joined
Tue Oct 10, 2017 4:29 am

Post by zapper4444 » Fri Oct 13, 2017 12:27 am

Think i found out why en-gb php code with _ befor it text back $_['text_account'] = 'Account';
so i take it that i have to rename these to.

Newbie

Posts

Joined
Tue Oct 10, 2017 4:29 am
Who is online

Users browsing this forum: Nordikota and 137 guests