Update of /cvsroot/tep/catalog/catalog/includes/modules/payment
In directory sc8-pr-cvs1:/tmp/cvs-serv30040/includes/modules/payment
Modified Files:
moneyorder.php
Log Message:
Add configuration variable to state who to make check/mo
payable to. It still used STORE_ADDRESS for the Send To
Index: moneyorder.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/moneyorder.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- moneyorder.php 14 Jan 2003 22:03:00 -0000 1.8
+++ moneyorder.php 16 Jan 2003 20:13:09 -0000 1.9
@@ -92,6 +92,7 @@
function install() {
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Enable Check/Money Order Module',
'MODULE_PAYMENT_MONEYORDER_STATUS', 'True', 'Do you want to accept Check/Money
Order payments?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'),
', now());");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Make Payable to:', 'MODULE_PAYMENT_MONEYORDER_PAYTO', '', 'Who should
payments be made payable to?', '6', '1', now());");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_MONEYORDER_SORT_ORDER', '0',
'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone',
'MODULE_PAYMENT_MONEYORDER_ZONE', '0', 'If a zone is selected, only enable this
payment method for that zone.', '6', '2', 'tep_get_zone_class_title',
'tep_cfg_pull_down_zone_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID', '0', 'Set the status of orders
made with this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");
@@ -102,7 +103,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_MONEYORDER_STATUS',
'MODULE_PAYMENT_MONEYORDER_ZONE', 'MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID',
'MODULE_PAYMENT_MONEYORDER_SORT_ORDER');
+ return array('MODULE_PAYMENT_MONEYORDER_STATUS',
'MODULE_PAYMENT_MONEYORDER_ZONE', 'MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID',
'MODULE_PAYMENT_MONEYORDER_SORT_ORDER', 'MODULE_PAYMENT_MONEYORDER_PAYTO');
}
}
?>
-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
|