I've been removing zones since they are irrelevant in Sweden. Now when I removed some I got into some issues since some modules/extensions use these. For example bank_transfer uses a SQL query for zones and some others as well. As of right now I get the following error:
Code: Select all
Notice: Undefined index: zone_id in /www/xxx/xx/XXXXXX/xxxxx.se/public_html/catalog/model/extension/payment/bank_transfer.php on line 6Notice: Undefined index: zone_id in /www/xxx/xx/XXXXXX/xxxxx.se/public_html/catalog/model/payment/factoring.php on line 48Notice: Undefined index: zone_id in //www/xxx/xx/XXXXXX/xxxxx.se/public_html/catalog/model/payment/payex.php on line 48
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "zone_to_geo_zone WHERE geo_zone_id = '" . (int)$this->config->get('bank_transfer_geo_zone_id') . "' AND country_id = '" . (int)$address['country_id'] . "' AND (zone_id = '" . (int)$address['zone_id'] . "' OR zone_id = '0')");
if ($this->config->get('bank_transfer_total') > 0 && $this->config->get('bank_transfer_total') > $total) {
$status = false;
} elseif (!$this->config->get('bank_transfer_geo_zone_id')) {
$status = true;
} elseif ($query->num_rows) {
$status = true;
} else {
$status = false;
Also I got some of that in other modules but I've not yet been able to start working with those.
Thank in advance
/ Nicklas