do modify share orders html content and font-size
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -213,7 +213,7 @@ class DetailModel | @@ -213,7 +213,7 @@ class DetailModel | ||
213 | 'numInCart' => 0, | 213 | 'numInCart' => 0, |
214 | 'goodsInstore' => $baseInfo['storage'], // 库存量 | 214 | 'goodsInstore' => $baseInfo['storage'], // 库存量 |
215 | ); | 215 | ); |
216 | - $soldOut = $baseInfo['storage'] == 0; | 216 | + $soldOut = ($baseInfo['storage'] == 0) || ($baseInfo['status'] == 0); |
217 | $notForSale = $baseInfo['attribute'] == 2; | 217 | $notForSale = $baseInfo['attribute'] == 2; |
218 | // 显示加入购物车链接 | 218 | // 显示加入购物车链接 |
219 | if (!$soldOut && !$notForSale) { | 219 | if (!$soldOut && !$notForSale) { |
-
Please register or login to post a comment