Changeset 22539 for branches/version-2_12-dev/data/class
- Timestamp:
- 2013/02/13 18:52:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping_LoadPaymentModule.php
r22206 r22539 91 91 */ 92 92 function getModulePath($order_id) { 93 $objQuery =& SC_Query_Ex::getSingletonInstance(); 94 $sql = <<< __EOS__ 95 SELECT module_path 96 FROM dtb_payment T1 97 JOIN dtb_order T2 98 ON T1.payment_id = T2.payment_id 99 WHERE order_id = ? 100 __EOS__; 101 $module_path = $objQuery->getOne($sql, array($order_id)); 93 $objPurchase = new SC_Helper_Purchase_Ex(); 94 $objPayment = new SC_Helper_Payment_Ex(); 95 96 $order = $objPurchase->getOrder($order_id); 97 $payment = $objPayment->get($order['payment_id']); 98 $module_path = $payment['module_path']; 99 102 100 if (file_exists($module_path)) { 103 101 return $module_path;
Note: See TracChangeset
for help on using the changeset viewer.