|
|
[TEP-COMMIT] CVS: catalog/catalog/includes/modules/payment cod.php,1.22,1.2: msg#00012
|
Subject: |
[TEP-COMMIT] CVS: catalog/catalog/includes/modules/payment cod.php,1.22,1.23 |
Update of /cvsroot/tep/catalog/catalog/includes/modules/payment
In directory sc8-pr-cvs1:/tmp/cvs-serv25835/includes/modules/payment
Modified Files:
cod.php
Log Message:
disable the Cash On Delivery payment module real-time if the order only
contains virtual products
Index: cod.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/cod.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- cod.php 25 Nov 2002 18:23:15 -0000 1.22
+++ cod.php 9 Jan 2003 15:47:25 -0000 1.23
@@ -36,6 +36,13 @@
$this->enabled = false;
}
}
+
+// disable the module if the order only contains virtual products
+ if ($this->enabled == true) {
+ if ($order->content_type == 'virtual') {
+ $this->enabled = false;
+ }
+ }
}
// class methods
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
|
| |