// Stock : it is not possible to manage stock for a virtual product or a pack anymore
This commit is contained in:
@@ -90,6 +90,7 @@ class AdminStockManagementControllerCore extends AdminController
|
||||
|
||||
$this->_select = 'a.id_product as id, COUNT(pa.id_product_attribute) as variations';
|
||||
$this->_join = 'LEFT JOIN `'._DB_PREFIX_.'product_attribute` pa ON (pa.id_product = a.id_product)';
|
||||
$this->_where = 'AND a.cache_is_pack = 0 AND a.is_virtual = 0';
|
||||
|
||||
$this->displayInformation($this->l('This interface allows you to manage the stocks of each of your products and their variations.').'<br />');
|
||||
$this->displayInformation($this->l('Total quantities in stock represent the sum for all warehouses.').'<br />');
|
||||
@@ -939,10 +940,12 @@ class AdminStockManagementControllerCore extends AdminController
|
||||
$ean13 = $product->ean13;
|
||||
$name = $product->name;
|
||||
$manufacturer_reference = $product->supplier_reference;
|
||||
$is_pack = $product->cache_is_pack;
|
||||
$is_virtual = $product->is_virtual;
|
||||
}
|
||||
}
|
||||
|
||||
if ($product_is_valid === true)
|
||||
if ($product_is_valid === true && $is_pack == false && $is_virtual == false)
|
||||
{
|
||||
// init form
|
||||
$this->initForm();
|
||||
|
||||
Reference in New Issue
Block a user