|
@@ -57,11 +57,13 @@ class StoreProductAttr extends BaseModel
|
|
|
$value['cart_num'] = 0;
|
|
$value['cart_num'] = 0;
|
|
|
if (is_null($value['cart_num'])) $value['cart_num'] = 0;
|
|
if (is_null($value['cart_num'])) $value['cart_num'] = 0;
|
|
|
}
|
|
}
|
|
|
|
|
+ var_dump($store_id);
|
|
|
if ($store_id && $type_id == 0) {
|
|
if ($store_id && $type_id == 0) {
|
|
|
$stockinfo = SystemStoreProductStock::where('unique', $value['unique'])->where('store_id', $store_id)->find();
|
|
$stockinfo = SystemStoreProductStock::where('unique', $value['unique'])->where('store_id', $store_id)->find();
|
|
|
$value['price'] = $stockinfo ? $stockinfo['price'] : $value['price'];
|
|
$value['price'] = $stockinfo ? $stockinfo['price'] : $value['price'];
|
|
|
}
|
|
}
|
|
|
$values[$value['suk']] = $value;
|
|
$values[$value['suk']] = $value;
|
|
|
|
|
+ var_dump($value);
|
|
|
}
|
|
}
|
|
|
foreach ($attrDetail as $k => $v) {
|
|
foreach ($attrDetail as $k => $v) {
|
|
|
$attr = $v['attr_values'];
|
|
$attr = $v['attr_values'];
|