本文整理汇总了PHP中orders::updateReturnDetail方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::updateReturnDetail方法的具体用法?PHP orders::updateReturnDetail怎么用?PHP orders::updateReturnDetail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::updateReturnDetail方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: implode
$class_plog->add('S', $process_time, $process_method, $request, $response);
$result = $returns['txid'];
if (is_array($response)) {
if ($response['status'] == 'APPROVED') {
$class_pi->saveUsedSequenceNumber($nextsequencenumber);
$success[] = $return_id;
$return_pkey_id = implode(",", $return_pkey_id);
$class_payone->updateReturnStatus($return_pkey_id, 1);
$return_hist['status'] = 1;
$return_hist['submitted_date'] = $process_time;
if ($class_pi->detail['invoice_order_type'] == 'J') {
//CLOSED RETURN (REMOVE FROM Return List on J&G Orders Management on Tab "Cancel & Return")
if (count($rid_arr) > 0) {
foreach ($rid_arr as $return_id) {
if ($return_id > 0) {
$class_o->updateReturnDetail($return_id, 'return_status', '1');
}
}
}
} elseif ($class_pi->detail['invoice_order_type'] == 'S') {
//CLOSED RETURN (REMOVE FROM Return List on SP Orders Management on Tab "Cancel & Return")
//if(count($rid_arr)>0) {
// foreach($rid_arr as $return_id) if($return_id>0) $class_jo->returnItemUpdate($return_id, 'confirm_return', '1');
//}
//Don't do this, the returns in SP Orders Management will be removed when the returns are reported to SP
//By doing this here we prevent the returns to be reported to our SP which is very important
}
$class_payone->payoneReturnItemHistory($return_hist);
if ($return_hist['amount_return_submitted'] == 0) {
//REFUND >> $returns['amount_return'] is negative
//$class_pi->overPaymentAmount($return_hist['amount_return']/100);
示例2: ajaxReturn
$result['op_id'] = $opid_col;
$result['old_status'] = '10';
$result['new_status'] = $new_status;
ajaxReturn($result);
exit;
*/
} elseif ($_POST['me_action'] == 'UPDATECANCELBY') {
$op_id = tep_db_prepare_input($_POST['op_id']);
$op_cancelby = tep_db_prepare_input($_POST['op_cancelby']);
$sda_op = array('products_problem' => $op_cancelby);
$class_o->updateOrderProductsDetail($op_id, $sda_op);
echo utf8_encode($op_id);
exit;
} elseif ($_POST['me_action'] == 'RETURNCLOSE') {
$return_id = tep_db_prepare_input($_POST['return_id']);
$class_o->updateReturnDetail($return_id, 'return_status', '1');
echo utf8_encode($return_id);
exit;
} elseif ($_POST['me_action'] == 'RETURNNOTIFICATION') {
$sendmail = true;
$return_id = tep_db_prepare_input($_POST['return_id']);
$return = $class_o->retrieveReturnDetail($return_id);
$product = $class_o->retrieveProductDetail($return['orders_products_id']);
$order = $class_o->retrieveDetail($product['orders_id']);
$mailformat = array();
$mailformat['R0'] = 'products-reproduce-waiting';
$mailformat['R1'] = 'products-reproduce';
$mailformat['W0'] = 'products-repro-change-waiting';
$mailformat['W1'] = 'products-repro-change';
$mailformat['C0'] = 'products-returned-waiting';
$mailformat['C1'] = 'products-returned';
示例3: orders
<?php
use_class('orders');
$class_o = new orders();
//AJAX SUBMIT
if (isset($_POST['me_action'])) {
if ($_POST['me_action'] == 'SETRECEIVESTATUS') {
$return_id = tep_db_prepare_input($_POST['return_id']);
$class_o->updateReturnDetail($return_id, 'product_received', '1');
$return = $class_o->retrieveReturnDetail($return_id);
if ($return['return_type'] == 'R' || $return['return_type'] == 'W') {
$product = $class_o->retrieveProductDetail($return['orders_products_id']);
if ($product['status'] == '9' || $product['status'] == '11') {
$class_o->updateReturnDetail($return_id, 'return_status', '1');
}
} elseif ($return['return_type'] == 'C') {
$cb_detail = $class_o->getChargedbackDetail($return['orders_products_id']);
if ($cb_detail['chargedback_status'] == '1' && $return['email_last_sent'] != '') {
$class_o->updateReturnDetail($return_id, 'return_status', '1');
} else {
if ($return['email_last_sent'] != '') {
$class_o->updateReturnDetail($return_id, 'email_last_sent', 'NULL');
}
}
}
echo 'Received';
exit;
} elseif ($_POST['me_action'] == 'UPDATECHARGEDBACK') {
$op_id = tep_db_prepare_input($_POST['op_id']);
$chargedback_amount = tep_db_prepare_input($_POST['chargedback_amount']);
$paid_status = tep_db_prepare_input($_POST['paid_status']);