I was able to successfully clone the linkpoint/firstdata payment module. I just have one more question. The module is set up so I can select a zone for the module to use. Is there a way to change it so that it will not use the zone I select. I think the code below is the code I need to change, but I am not sure what to change.
Code:
function update_status() {
global $order, $db;
if ( $this->enabled && $this->zone > 0 ) {
$check_flag = false;
$sql = "SELECT zone_id
FROM " . TABLE_ZONES_TO_GEO_ZONES . "
WHERE geo_zone_id = :zoneId
AND zone_country_id = :countryId
ORDER BY zone_id";
$sql = $db->bindVars($sql, ':zoneId', $this->zone, 'integer');
$sql = $db->bindVars($sql, ':countryId', $order->billing['country']['id'], 'integer');
$check = $db->Execute($sql);
while (!$check->EOF) {
if ($check->fields['zone_id'] < 1) {
$check_flag = true;
break;
} elseif ($check->fields['zone_id'] == $order->billing['zone_id']) {
$check_flag = true;
break;
}
$check->MoveNext();
}
if (!$check_flag) {
$this->enabled = false;
}
}
Thank you