Publisher review:Check Money Order Module - Now you will have a Check/Money order option during checkout and it will also have payment information on the email to the customer Instalation1. Copy the files from the contribution into the right folders.
catalogincludesmodulespaymentmoneyorder.php
catalogincludeslanguagesenglishmodulespaymentmoneyorder.php
2. This module requires a couple of lines to be added to the following files.
a) First add the following line to catalogadminincludeslanguagesenglishorders.php
in the section that starts with "define('TEXT_ ....."
define('TEXT_MONEY_ORDER', 'Check or Money Order');
b) Next add the following line to catalogincludeslanguagesenglishcheckout_confirmation.php
in the section that starts with "define('TEXT_ ....."
define('TEXT_MONEY_ORDER', 'Check or Money Order');
c) Then add the following lines to catalogincludeslanguagesenglishcheckout_process.php
right after "define('EMAIL_TEXT_PAYPAL', 'PayPal');"
define('EMAIL_TEXT_MONEY_ORDER', 'Chck or Money Order');
define('EMAIL_TEXT_MONEY_ORDER_INFO', 'Make Payable To:' . " " . ' Your Company Name' . " " .
' 555 Your Street Name' . " " .
' Your Town, ST 00000' . " " .
' Your order will not ship until we receive payment.');
d) Find the following section in catalogincludeslanguagesenglishcheckout_process.php ->>
switch($payment) {
case 'cod' : // Cash On Delivery
$email_order .= EMAIL_TEXT_CASH_ON_DELIVERY . " ";
break;
case 'cc' : // Credit Card
$email_order .= EMAIL_TEXT_CREDIT_CARD . ' ' . $cc_type . " ";
break;
case 'paypal' : // PayPal
$email_order .= EMAIL_TEXT_PAYPAL . " ";
break;
}
And change it to the following ->>
switch($payment) {
case 'cod' : // Cash On Delivery
$email_order .= EMAIL_TEXT_CASH_ON_DELIVERY . " ";
break;
case 'moneyorder' : // Money Order
$email_order .= EMAIL_TEXT_MONEY_ORDER . " " . EMAIL_TEXT_MONEY_ORDER_INFO . " ";
break;
case 'cc' : // Credit Card
$email_order .= EMAIL_TEXT_CREDIT_CARD . ' ' . $cc_type . " ";
break;
case 'paypal' : // PayPal
$email_order .= EMAIL_TEXT_PAYPAL . " ";
break;
}
3. You need to change some text in catalogincludeslanguagesenglishmodulesmoneyorder.php
and in catalogincludeslanguagesenglishcheckout_process.php to reflect your information.
The text statements you need to change is:
TEXT_MONEY_ORDER_INFO (in moneyorder.php)
EMAIL_TEXT_MONEY_ORDER_INFO (in checkout_process.php)
4. Congratulations you have now installed the Check/Money Order Module.
It is pretty simple to use, just go to the administrative front-end of your shop and click on 'Payment' under the Modules section and make sure that moneyorder.php is installed.
Then click on 'Payment Options' and make sure that the value for 'Allow Check and Money Order Payments' is equal 1 (one).
Now you will have a Check/Money order option during checkout and it will also have payment information on the email to the customer.
Check Money Order Module 1.0 is a PHP script for osCommerce Addons scripts design by Henri Bredehoeft.
It runs on following operating system: Windows / Linux / BSD.
Operating system:Windows / Linux / BSD