diff --git a/modules/labelgenerate/AdminLabelGenerate.php b/modules/labelgenerate/AdminLabelGenerate.php index 266df797..4d6c994b 100644 --- a/modules/labelgenerate/AdminLabelGenerate.php +++ b/modules/labelgenerate/AdminLabelGenerate.php @@ -70,7 +70,7 @@ class AdminLabelGenerate extends AdminTab { $result_quantities = Db::getInstance()->executeS(' SELECT od.`product_quantity`,od.`product_quantity_reinjected` FROM '._DB_PREFIX_.'order_detail od - WHERE od.`product_id` = ' . (int)$product->id + WHERE od.`product_id` = ' . (int)$product->id . ' AND `id_product_attribute` = 0' ); $quantity = 0; foreach ($result_quantities as $od) {