I know how to do this in 1.4 but the code in 1.5 looks a little different. We loose around 2% on foreign exchange so we add about 2% to euro transactions on our stores. I've set one up in V1.5 and have added the *1.02 in the currency.php file but it must be in the wrong place as it's not doing anything
I'd be really grateful if someone could tell me where it should go
Code: Select all
$this->db->query("UPDATE " . DB_PREFIX . "currency SET value = '" . (float)$value * 1.02 . "', date_modified = '" . $this->db->escape(date('Y-m-d H:i:s')) . "' WHERE code = '" . $this->db->escape($currency) . "'");
With many many thanks....