本文整理汇总了PHP中orders::retrieveProductHistory方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::retrieveProductHistory方法的具体用法?PHP orders::retrieveProductHistory怎么用?PHP orders::retrieveProductHistory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::retrieveProductHistory方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: orders
}
}
}
$logger->write("- {$counter} SP Items Updated");
//JNG PACKAGES
$counter = 0;
use_class('minierp_packages');
$class_mp = new minierp_packages();
use_class('orders');
$class_o = new orders();
$packages = $class_mp->retrieveUnreceivedPackages();
foreach ($packages as $pid => $p) {
$status_check = array('8', '9');
$items = $class_mp->getProducts($pid);
foreach ($items as $item_id) {
$ih = $class_o->retrieveProductHistory($item_id);
foreach ($ih as $h) {
if (in_array($h['status'], $status_check)) {
$counter++;
$class_mp->setReceiveDate($pid, $h['status_date']);
break 2;
}
}
}
}
$logger->write("- {$counter} JG Items Updated");
$logger->write("Task 1 - End");
$logger->write("Task 2 (ORDER CHECK N SET COMPLETE) - Start");
////////////////////////////////
// ORDER CHECK N SET COMPLETE //
////////////////////////////////
示例2: orders
<?php
use_class('orders');
$class_o = new orders();
use_class('products_minierp');
$class_pm = new products_minierp();
$opid = tep_db_prepare_input($_GET['opid']);
$statusName = $class_o->productStatusName();
$item = $class_o->retrieveProductDetail($opid);
$product = $class_pm->retrieveDetail($item['products_id'], 'p');
$order = $class_o->retrieveDetail($item['orders_id']);
$history = $class_o->retrieveProductHistory($opid);
$history_prod = retrieveProductionHistory('JG', $opid);
$htable = array();
$ht = array();
$ht['sort'] = 'No';
$ht['date_add'] = 'Date';
$ht['status'] = 'Status';
//$ht['qty'] = 'Qty';
$ht['login'] = 'Updated By';
$htable[] = $ht;
$count = 0;
$total_history = count($history);
$prev_info = array();
foreach ($history as $hk => $h) {
$count++;
$timestamp = strtotime($h['status_date']);
$ht = array();
$ht['sort'] = $count;
$ht['date_add'] = date('d.m.y H:i:s', $timestamp);
$ht['status'] = $statusName[$h['status']];