diff --git a/classes/Product.php b/classes/Product.php index c7b9dcdf6..077c1afc7 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2109,7 +2109,7 @@ class ProductCore extends ObjectModel if (!$context) $context = Context::getContext(); - $id_shop = $shop->getID(true); + $id_shop = $context->shop->getID(true); if (!isset(self::$cacheStock[$this->id][$id_product_attribute])) { $sql = 'SELECT quantity