[-] BO : FixBug #PSCFV-9894 undefined quantity_all_version variable in product.tpl
This commit is contained in:
1 parent
2e6e5a2604
commit
d241013692
1 file changed
+2
-3
+2
-3
@@ -3797,15 +3797,14 @@ class ProductCore extends ObjectModel
|
|||||||
isset($row['cache_is_pack']) ? $row['cache_is_pack'] : null
|
isset($row['cache_is_pack']) ? $row['cache_is_pack'] : null
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$row['quantity_all_versions'] = $row['quantity'];
|
||||||
|
|
||||||
if ($row['id_product_attribute'])
|
if ($row['id_product_attribute'])
|
||||||
{
|
|
||||||
$row['quantity_all_versions'] = $row['quantity'];
|
|
||||||
$row['quantity'] = Product::getQuantity(
|
$row['quantity'] = Product::getQuantity(
|
||||||
(int)$row['id_product'],
|
(int)$row['id_product'],
|
||||||
$row['id_product_attribute'],
|
$row['id_product_attribute'],
|
||||||
isset($row['cache_is_pack']) ? $row['cache_is_pack'] : null
|
isset($row['cache_is_pack']) ? $row['cache_is_pack'] : null
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
$row['id_image'] = Product::defineProductImage($row, $id_lang);
|
$row['id_image'] = Product::defineProductImage($row, $id_lang);
|
||||||
$row['features'] = Product::getFrontFeaturesStatic((int)$id_lang, $row['id_product']);
|
$row['features'] = Product::getFrontFeaturesStatic((int)$id_lang, $row['id_product']);
|
||||||
|
|||||||
Reference in new issue
Block a user