diff --git a/classes/Combination.php b/classes/Combination.php index f66a5895f..88b56ff9f 100644 --- a/classes/Combination.php +++ b/classes/Combination.php @@ -101,7 +101,10 @@ class CombinationCore extends ObjectModel { if (!parent::delete()) return false; - + + // Removes the product from StockAvailable, for the current shop + StockAvailable::removeProductFromStockAvailable((int)$this->id_product, (int)$this->id); + if (!$this->hasMultishopEntries() && !$this->deleteAssociations()) return false; return true;