Authored by Rock Zhang

添加支付成功页面的商品统计代码

... ... @@ -5,9 +5,9 @@ window.criteo_q = window.criteo_q || [];
window.criteo_q.push(
{ event: "setAccount", account: [16184] },
{ event: "setSiteType", type: "d" },
{ event: "trackTransaction" , id: "{{orderId}}", item: [
{ event: "trackTransaction" , id: "{{orderNum}}", item: [
{{#each items}}
{ id: "{{id}}", price: "{{price}}", quantity: "{{quantity}}"}
{ id: "{{order_id}}", price: "{{goods_price}}", quantity: "{{buy_number}}"}
{{#unless @last}}
,
{{/unless}}
... ...
... ... @@ -601,6 +601,7 @@ class PayModel
$result['data'] = array(
'pay' => $amount,
'orderNum' => $orderData['order_code'],
'items' => $orderData['order_goods'], // 订单商品
'checkOrderUrl' => Helpers::url('/home/orders/detail', array('orderCode' => $orderData['order_code'])),
'payMode' => ($orderData['payment_type'] == 1 ? '在线支付' : '货到付款'),
'currency' => $orderData['yoho_give_coin'],
... ...