本文整理汇总了PHP中orders::sendProductStatusNotification方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::sendProductStatusNotification方法的具体用法?PHP orders::sendProductStatusNotification怎么用?PHP orders::sendProductStatusNotification使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::sendProductStatusNotification方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ajaxReturn
}
ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'REMINDERVORKASSEUNPAID') {
$opid = tep_db_prepare_input($_POST['op_id']);
$status = tep_db_prepare_input($_POST['op_status']);
$is2nd_reminder = tep_db_prepare_input($_POST['is2nd_reminder']);
$useAltContent = $is2nd_reminder == '1';
$product = $class_o->retrieveProductDetail($opid);
if ($product['status'] == $status) {
$products = $class_o->retrieveProducts($product['orders_id']);
$opids = array();
foreach ($products as $p) {
$opids[] = $p['orders_products_id'];
}
$class_o->sendProductStatusNotification($opids, $status, $languages[2]['path'], $useAltContent);
$result = array();
$result['op_id'] = implode(',', $opids);
ajaxReturn($result);
}
exit;
} elseif ($_POST['me_action'] == 'VORKASSEUNPAIDCANCEL') {
$opid = tep_db_prepare_input($_POST['op_id']);
$old_status = tep_db_prepare_input($_POST['op_status']);
$new_status = '12';
$useAltContent = true;
$product = $class_o->retrieveProductDetail($opid);
if ($product['status'] == $old_status) {
$products = $class_o->retrieveProducts($product['orders_id']);
$opids = array();
foreach ($products as $p) {