 
Offline Payment by Money Order
Version v0.1
Developed for AC 1.2.3 stable
Author: Leo
Date: 17-Sep-2010
 
With this contribution you can add money order 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_moneyorderstatus(){
		$result = $this->database->getRows("select * from zone_to_geo_zone where geo_zone_id = '" . (int)$this->config->get('moneyorder_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

