Skip to content

Commit d70caf6

Browse files
authored
Merge pull request #164 from matthieu-rolland/fix-missing-attr
Fix bug breaking price cache keys used in getPriceStatic and priceCalculation
2 parents 3406505 + 13aa4d7 commit d70caf6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

classes/Hook/HookActionCartUpdateQuantityBefore.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,14 @@ public function run()
6666
// Format product and standardize ID
6767
$product = (array) $this->params['product'];
6868
$product['id_product'] = $product['id'];
69-
70-
// Get some basic information
71-
$product = Product::getProductProperties($this->context->language->id, $product);
72-
7369
// Add information about attribute
7470
if (!empty($this->params['id_product_attribute'])) {
7571
$product['id_product_attribute'] = (int) $this->params['id_product_attribute'];
7672
}
7773

74+
// Get some basic information
75+
$product = Product::getProductProperties($this->context->language->id, $product);
76+
7877
// Add information about quantity difference
7978
$product['quantity'] = (int) $this->params['quantity'];
8079

0 commit comments

Comments
 (0)