Thread: Order Error
View Single Post
  #3 (permalink)  
Old 14-04-2008, 10:59 AM
jtaylor jtaylor is offline
Member
 
Join Date: Nov 2007
Location: Melbourne, AUST
Posts: 35
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thanks, been busy lately!

$order_exists = true;
if ($orders->RecordCount() <= 0) {
$order_exists = false;
$messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error');
case 'doRefund':
$order = new order($oID);
if ($order->info['payment_module_code']) {
if (file_exists(DIR_FS_CATALOG_MODULES . 'payment/' . $order->info['payment_module_code'] . '.php')) {
require_once(DIR_FS_CATALOG_MODULES . 'payment/' . $order->info['payment_module_code'] . '.php');
require_once(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_module_code'] . '.php');
$module = new $order->info['payment_module_code'];
if (method_exists($module, '_doRefund')) {
$module->_doRefund($oID);
}

Line 195 is ' case 'doRefund':'
Jason
__________________

www.emplore.com.au
Reply With Quote