We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3406505 + 13aa4d7 commit d70caf6Copy full SHA for d70caf6
classes/Hook/HookActionCartUpdateQuantityBefore.php
@@ -66,15 +66,14 @@ public function run()
66
// Format product and standardize ID
67
$product = (array) $this->params['product'];
68
$product['id_product'] = $product['id'];
69
-
70
- // Get some basic information
71
- $product = Product::getProductProperties($this->context->language->id, $product);
72
73
// Add information about attribute
74
if (!empty($this->params['id_product_attribute'])) {
75
$product['id_product_attribute'] = (int) $this->params['id_product_attribute'];
76
}
77
+ // Get some basic information
+ $product = Product::getProductProperties($this->context->language->id, $product);
+
78
// Add information about quantity difference
79
$product['quantity'] = (int) $this->params['quantity'];
80
0 commit comments