// BugFix : Porblem during adding product to cart
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9601 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
1122f9a28e
commit
7a6364bfa7
1 file changed
+6
-1
+6
-1
@@ -2227,8 +2227,13 @@ class ProductCore extends ObjectModel
|
|||||||
|
|
||||||
if ($this->isAvailableWhenOutOfStock($this->getOutOfStock()))
|
if ($this->isAvailableWhenOutOfStock($this->getOutOfStock()))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if(isset($this->id_product_attribute))
|
||||||
|
$id_product_attribute = $this->id_product_attribute;
|
||||||
|
else
|
||||||
|
$id_product_attribute = 0;
|
||||||
|
|
||||||
return ($qty <= StockAvailable::getStockAvailableForProduct($id_product, $id_product_attribute, Context::getContext()->shop->getID()));
|
return ($qty <= StockAvailable::getStockAvailableForProduct($this->id, $id_product_attribute, Context::getContext()->shop->getID()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user