本文整理汇总了PHP中orders::updateChargedbackDetail方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::updateChargedbackDetail方法的具体用法?PHP orders::updateChargedbackDetail怎么用?PHP orders::updateChargedbackDetail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::updateChargedbackDetail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$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']);
$class_o->updateChargedbackDetail($op_id, $chargedback_amount, $paid_status);
echo '<div class="green">Update successfully saved</div>';
exit;
}
}
//START TEMPLATE
$return_id = isset($_GET['id']) ? tep_db_prepare_input($_GET['id']) : '';
if ($return_id == '') {
exit;
}
$return = $class_o->retrieveReturnDetail($return_id);
$product = $class_o->retrieveProductDetail($return['orders_products_id']);
$order = $class_o->retrieveDetail($product['orders_id']);
$pimg = webImageSource($product['products_image'], '500');
if ($pimg != '') {
$pimg = webImage($product['products_image'], '120', '120', '', 'img-border img-padding');