 
Offline Payment by Cheque
Version v0.2
Developed for AC 1.2.3 stable
Author: Leo
Date: 10-Sep-2010
 
With this contribution you can add cheque as offline payment method.


Install instructions:

1. Download the attached file
2. Unzip it
3. Run the included SQL file on your database
4. Upload the files respecting the directory structure. 
5. Open your /catalog/model/model_payment.php file and add:

function get_chequestatus(){
		$result = $this->database->getRows("select * from zone_to_geo_zone where geo_zone_id = '" . (int)$this->config->get('cheque_geo_zone_id') . "' and country_id = '" . (int)$this->address->getCountryId($this->session->get('payment_address_id')) . "' and (zone_id = '" . (int)$this->address->getZoneId($this->session->get('payment_address_id')) . "' or zone_id = '0')");
		return $result;
	}

after

function get_codstatus(){
		$result = $this->database->getRows("select * from zone_to_geo_zone where geo_zone_id = '" . (int)$this->config->get('cod_geo_zone_id') . "' and country_id = '" . (int)$this->address->getCountryId($this->session->get('payment_address_id')) . "' and (zone_id = '" . (int)$this->address->getZoneId($this->session->get('payment_address_id')) . "' or zone_id = '0')");
		return $result;
	}

6. Go to Admin--> Extensions--> Payment
7. To install the modul click on the "+" icon under Action
8. To configure it click on the wrench icon

