Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
biao
9 years ago
Commit
2bb8dc441000d181be54968426dc48afe1101c18
1 parent
cd8f1a8f
update for limit product sale status
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
2bb8dc4
...
...
@@ -204,7 +204,7 @@ class DetailModel
$totalStorageNum
=
0
;
// 总库存数
foreach
(
$baseInfo
[
'goodsList'
]
as
$value
)
{
// 如果status为0,即skc下架时就跳过该商品
if
(
$value
[
'status'
]
===
0
)
{
if
(
$value
[
'status'
]
===
0
&&
$baseInfo
[
'isLimitBuy'
]
!==
'Y'
)
{
continue
;
}
...
...
@@ -314,9 +314,10 @@ class DetailModel
);
$soldOut
=
(
$baseInfo
[
'status'
]
==
0
||
$totalStorageNum
===
0
);
$notForSale
=
$baseInfo
[
'attribute'
]
==
2
;
$willSale
=
(
$baseInfo
[
'showStatus'
]
===
1
&&
$baseInfo
[
'saleStatus'
]
===
0
);
// 显示加入购物车链接
if
(
!
$soldOut
&&
!
$notForSale
)
{
if
(
$willSale
||
(
!
$soldOut
&&
!
$notForSale
)
)
{
ksort
(
$colorGroup
,
SORT_NUMERIC
);
$result
[
'cartInfo'
][
'productId'
]
=
$productId
;
...
...
Please
register
or
login
to post a comment