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