From 3c7ffe1072425c775c60f889d773d97ee510a792 Mon Sep 17 00:00:00 2001 From: Rock Zhang <iamgtskk@gmail.com> Date: Fri, 13 May 2016 14:57:31 +0800 Subject: [PATCH] 1需付款与货到付款页面添加criteo统计数据 --- yohobuy/www.yohobuy.com/application/models/Shopping/Pay.php | 4 ++-- yohobuy/www.yohobuy.com/application/modules/Shopping/controllers/Pay.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/yohobuy/www.yohobuy.com/application/models/Shopping/Pay.php b/yohobuy/www.yohobuy.com/application/models/Shopping/Pay.php index b52cc15..cb27349 100644 --- a/yohobuy/www.yohobuy.com/application/models/Shopping/Pay.php +++ b/yohobuy/www.yohobuy.com/application/models/Shopping/Pay.php @@ -65,6 +65,8 @@ class PayModel $result['orderNum'] = $orderCode; $result['count'] = $order['payment_amount']; $result['paymentType'] = ($order['payment_type'] == 1 ? '在线支付' : '货到付款'); + // 订单商品(用于订单统计) + $result['orderGoods'] = $order['order_goods']; //统计成交的skn $sknList = array(); @@ -220,8 +222,6 @@ class PayModel // 订单数(用于订单统计) $result['orderCount'] = $orderCount; $result['is_advance'] = $order['attribute'] == 5 ? 'Y' : 'N'; - // 订单商品(用于订单统计) - $result['orderGoods'] = $order['order_goods']; // 订单商品数(用于订单统计) $result['ordersGoodsNums'] = count($order['order_goods']); } while (false); diff --git a/yohobuy/www.yohobuy.com/application/modules/Shopping/controllers/Pay.php b/yohobuy/www.yohobuy.com/application/modules/Shopping/controllers/Pay.php index 4d16e7c..e98f37a 100644 --- a/yohobuy/www.yohobuy.com/application/modules/Shopping/controllers/Pay.php +++ b/yohobuy/www.yohobuy.com/application/modules/Shopping/controllers/Pay.php @@ -69,6 +69,10 @@ class PayController extends WebAction 'count' => $data['count'], 'productList' => $data['pinyouGoods'] ), + 'criteo' => array(// criteo统计代码有关数据 + 'orderNum' => $data['orderNum'], + 'items' => $data['orderGoods'] + ), 'payPage' => true )); } -- libgit2 0.24.0