Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
f60003d4db2b690b816740f791e16ff7befab9b8
1 parent
f5553432
PC 修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
template/www.yohobuy.com/actions/product/item/index.phtml
yohobuy/www.yohobuy.com/application/models/Product/Item.php
template/www.yohobuy.com/actions/product/item/index.phtml
View file @
f60003d
...
...
@@ -648,7 +648,7 @@ _mvq.push(['$logConversion']);
_mvq.push(
[
'$addGoods'
,
/*分类id*/
''
,
/*品牌id*/
''
,
/*商品名称*/
''
,
/*商品ID*/
'
{
{productId
}
}'
,
/*商品售价*/
''
,
/*商品图片url*/
''
,
/*分类名*/
''
,
/*品牌名*/
''
,
/*商品库存状态
1
或是
0
*/
''
,
/*网络价*/
''
,
/*收藏人数*/
''
]
);
_mvq.push(
[
'$logData'
]
);
var
_goodsData
=
{
id:'{{
productId
}
}',//
商品ID
id:'{{
skn
}
}',//
商品ID
name:'
{
{productName
}
}',
//
商品名称
brand:'
{
{brandName
}
}',
//
商品品牌(非必填)
origPrice:'
{
{marketPrice
}
}',
//
商品原价(非必填)
...
...
yohobuy/www.yohobuy.com/application/models/Product/Item.php
View file @
f60003d
...
...
@@ -179,6 +179,7 @@ class ItemModel
//统计需要的商品信息
$statGoodsInfo
[
'uid'
]
=
$uid
;
$statGoodsInfo
[
'skn'
]
=
$baseInfo
[
'erpProductId'
];
$statGoodsInfo
[
'productId'
]
=
$productId
;
$statGoodsInfo
[
'productName'
]
=
str_replace
(
"'"
,
"’"
,
$goodsInfo
[
'name'
]);
$statGoodsInfo
[
'brandName'
]
=
empty
(
$goodsInfo
[
'brandName'
])
?
''
:
str_replace
(
"'"
,
"’"
,
$goodsInfo
[
'brandName'
]);
...
...
Please
register
or
login
to post a comment