本文整理汇总了PHP中orders::removeBankTransfer方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::removeBankTransfer方法的具体用法?PHP orders::removeBankTransfer怎么用?PHP orders::removeBankTransfer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::removeBankTransfer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$action = '<input type="button" name="set2uv" value="Set as Fail" />';
$action .= '<input type="hidden" id="oid-' . $row['orders_id'] . '" name="orders_id" value="' . $row['orders_id'] . '" />';
$t['t'] = $action;
$table[] = $t;
}
}
if (count($table) > 1) {
$result = tep_draw_table('spo', $table);
} else {
$result .= '<h3 class="red">No orders/products found</h3>';
}
echo utf8_encode($result);
exit;
} elseif ($_POST['me_action'] == 'SETASUNPAIDVORKASSE') {
$orders_id = tep_db_prepare_input($_POST['orders_id']);
$removed = $class_o->removeBankTransfer($orders_id, $session_userinfo['username']);
if ($removed) {
//SEND NOTIFICATION: "ORDER CONFIRMATION"
$order = $class_o->retrieveDetail($orders_id);
$order_no = $order['orders_no'];
$order_date = date('d.m.Y', strtotime($order['date_purchased']));
$to_name = $order['customers_name'];
$to_email_address = $order['customers_email_address'];
include DIR_WS_EMAILS . $languages[2]['path'] . '/bankeinzug-fail.php';
$from_email_name = FROM_EMAIL_NAME;
$from_email_address = FROM_EMAIL_ADDRESS;
$sent = tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address);
$comment = 'Order payment method changed from Bankeinzug to Vorkasse due to Debit Failure. ';
$comment .= 'Additional charge ' . $add_payment_text . ' is added to payment as a penalty. ';
$comment .= 'New total value is ' . $total_payment_text . ' and should be paid until ' . $payment_due_text;
$class_o->insertComment($orders_id, $comment, 'System');