Authored by 郝肖肖

订单确认页面 统计代码

... ... @@ -231,10 +231,19 @@ class IndexController extends WebAction
if (empty($orderEnsure)) {
$this->go(Helpers::url('/shopping/cart'));
}
$productListArr = array();
foreach ($orderEnsure['orderProducts'] as $orderProducts) {
$productListArr[] = $orderProducts['id'] . ',' . $orderProducts['productNum'];
}
$this->_view->display('order-ensure', array(
'orderEnsurePage' => true,
'orderEnsure' => $orderEnsure,
'pinyou' => array(
'money' => $orderEnsure['lastOrderAmount'],
'productList' => implode(';', $productListArr)
)
));
}
... ...