[-] Core: Hook actionUpdateQuantity was not called for product without attributes which depends on the physical stock
This commit is contained in:
@@ -171,6 +171,14 @@ class StockAvailableCore extends ObjectModel
|
||||
continue;
|
||||
|
||||
$product_quantity = $manager->getProductRealQuantities($id_product, null, $allowed_warehouse_for_product_clean, true);
|
||||
|
||||
Hook::exec('actionUpdateQuantity',
|
||||
array(
|
||||
'id_product' => $id_product,
|
||||
'id_product_attribute' => 0,
|
||||
'quantity' => $product_quantity
|
||||
)
|
||||
);
|
||||
}
|
||||
// else this product has attributes, hence loops on $ids_product_attribute
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user