do product detail page add to cart feature
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -211,8 +211,8 @@ class DetailModel | @@ -211,8 +211,8 @@ class DetailModel | ||
211 | $thumbImageList[] = array('img' => Helpers::getImageUrl($value['colorImage'], 60, 60) ); | 211 | $thumbImageList[] = array('img' => Helpers::getImageUrl($value['colorImage'], 60, 60) ); |
212 | 212 | ||
213 | // 统计每个尺码对应的各个颜色的库存量 | 213 | // 统计每个尺码对应的各个颜色的库存量 |
214 | - foreach ($sizeList as &$value) { | ||
215 | - $value['colorNumStr'] = implode('/', array_values($colorStorageGroup[ $value['sizeName'] ]) ); | 214 | + foreach ($sizeList as &$sizeArr) { |
215 | + $sizeArr['colorNumStr'] = implode('/', array_values($colorStorageGroup[ $sizeArr['sizeName'] ]) ); | ||
216 | } | 216 | } |
217 | 217 | ||
218 | // 商品库存总数 | 218 | // 商品库存总数 |
-
Please register or login to post a comment