|
@@ -96,7 +96,6 @@ class StoreCart extends BaseModel
|
|
|
|
|
|
return $cart;
|
|
|
} else {
|
|
|
-
|
|
|
$stock = 0;
|
|
|
if ($bargain_id) {
|
|
|
|
|
@@ -107,7 +106,7 @@ class StoreCart extends BaseModel
|
|
|
} else if ($combination_id) {
|
|
|
|
|
|
$stock = StoreCombination::getCombinationStock($combination_id, $cart_num);
|
|
|
- } else if ($cart['product_id']) {
|
|
|
+ } else if ($product_id) {
|
|
|
|
|
|
$stock = StoreProduct::getProductStock($product_id, $product_attr_unique);
|
|
|
}
|