Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
315f042b54a5ea6fc0c6c8dccc194345d5811a67
1 parent
9cd4c4e3
code review by fei.hong: do fixes bugs to shopping cart browse cookie buy limit goods
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Item.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Item.php
View file @
315f042
...
...
@@ -39,7 +39,11 @@ class ItemController extends WebAction
$this
->
setTitle
(
$seo
[
'title'
],
true
,
'|'
);
$this
->
setKeywords
(
$seo
[
'keywords'
]);
$this
->
setDescription
(
$seo
[
'description'
],
true
);
$this
->
saveCookie
(
$goodsId
,
$productInfo
[
'goodsInfo'
][
'skn'
]);
// 除限量商品外, 其余的都往COOKIE里存
if
(
!
isset
(
$productInfo
[
'goodsInfo'
][
'fashionTopGoods'
]))
{
$this
->
saveCookie
(
$goodsId
,
$productInfo
[
'goodsInfo'
][
'skn'
]);
}
//获取商品尺寸相关
$sizeInfo
=
ItemModel
::
getSizeInfo
(
$productInfo
[
'goodsInfo'
][
'skn'
],
$productInfo
[
'goodsInfo'
][
'maxSortId'
]);
...
...
@@ -47,7 +51,7 @@ class ItemController extends WebAction
'detail'
=>
array
(),
'statGoodsInfo'
=>
array_merge
(
array
(
'fullSortName'
=>
implode
(
'-'
,
$sortNames
)),
$productInfo
[
'statGoodsInfo'
]),
$productInfo
[
'statGoodsInfo'
]),
);
//导航
$data
[
'detail'
][
'pathNav'
]
=
array_merge
(
...
...
@@ -100,7 +104,7 @@ class ItemController extends WebAction
$data
=
array
(
'productDetailPage'
=>
true
,
'detail'
=>
array
(),
'statGoodsInfo'
=>
array_merge
(
array
(
'fullSortName'
=>
implode
(
'-'
,
$sortNames
)),
$productInfo
[
'statGoodsInfo'
]),
$productInfo
[
'statGoodsInfo'
]),
);
//导航
$data
[
'detail'
][
'pathNav'
]
=
array_merge
(
...
...
Please
register
or
login
to post a comment