本文整理汇总了PHP中orders::updateEmailAddress方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::updateEmailAddress方法的具体用法?PHP orders::updateEmailAddress怎么用?PHP orders::updateEmailAddress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::updateEmailAddress方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
}
}
echo utf8_encode($result);
exit;
} elseif ($_POST['me_action'] == 'UPDATECUSTOMERSPECIALLIST') {
$customers_id = tep_db_prepare_input($_POST['customers_id']);
$status = tep_db_prepare_input($_POST['status']);
$class_csl->addCustomer($status, $customers_id);
$messagebox->add('Successfully set this customer as a ' . $class_csl->getTypeName($status) . ' Customer', 'green');
$openspeciallistdetail = true;
} elseif ($_POST['me_action'] == 'CHANGEEMAILADDRESS') {
$order_id = tep_db_prepare_input($_POST['order_id']);
$old_email = tep_db_prepare_input($_POST['old_email']);
$new_email = tep_db_prepare_input($_POST['new_email']);
if (tep_validate_email($new_email)) {
$class_o->updateEmailAddress($order_id, $old_email, $new_email, $session_userinfo['username']);
$result = 'OK';
} else {
$result = 'FAIL';
}
echo utf8_encode($result);
exit;
} elseif ($_POST['me_action'] == 'REFRESHORDERTOTAL') {
$order_id = tep_db_prepare_input($_POST['order_id']);
$order_total = $class_o->retrieveTotals($order_id);
$result = array();
$result['ot_box'] = drawOrderTotalBox($order_id, $order_total);
$dbq = tep_db_query("SELECT SUM(products_quantity) total_qty FROM orders_products WHERE orders_id = '{$order_id}' AND status NOT IN (10,12)");
$res = tep_db_fetch_array($dbq);
$result['total_qty'] = $res['total_qty'];
$result['total_price'] = $order_total['ot_subtotal']['text'];