add pid on query
This commit is contained in:
parent
392892f3d2
commit
f43730525b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user