add pid on query

This commit is contained in:
Srv Bebeboutik 2016-03-09 16:38:21 +01:00
parent 392892f3d2
commit f43730525b

View File

@ -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) {