// Stock : removed references to the actual stock management in AdminOrders/Product in order to merge with the new stock management system

This commit is contained in:
bMancone
2011-10-13 15:32:06 +00:00
parent 59d123a311
commit d387633648
2 changed files with 9 additions and 10 deletions
+5 -2
View File
@@ -196,7 +196,7 @@ class ProductCore extends ObjectModel
protected $langMultiShop = true;
public $cache_is_pack;
public $cache_has_attachments;
public $cache_has_attachments;
public $is_virtual;
public $cache_default_attribute;
@@ -336,7 +336,10 @@ class ProductCore extends ObjectModel
$this->tags = Tag::getProductTags((int)$this->id);
}
$this->quantity = $this->getStock();
/**
* @FIXME
*/
$this->quantity = 0;
if ($this->id_category_default)
$this->category = Category::getLinkRewrite((int)$this->id_category_default, (int)$id_lang);