diff --git a/classes/Hook/HookActionCartUpdateQuantityBefore.php b/classes/Hook/HookActionCartUpdateQuantityBefore.php index 57cb3cf..11ff82f 100644 --- a/classes/Hook/HookActionCartUpdateQuantityBefore.php +++ b/classes/Hook/HookActionCartUpdateQuantityBefore.php @@ -66,16 +66,14 @@ public function run() // Format product and standardize ID $product = (array) $this->params['product']; $product['id_product'] = $product['id']; - $product['id_product_attribute'] = $this->params['id_product_attribute']; - - // Get some basic information - $product = Product::getProductProperties($this->context->language->id, $product); - // Add information about attribute if (!empty($this->params['id_product_attribute'])) { $product['id_product_attribute'] = (int) $this->params['id_product_attribute']; } + // Get some basic information + $product = Product::getProductProperties($this->context->language->id, $product); + // Add information about quantity difference $product['quantity'] = (int) $this->params['quantity'];