diff --git a/classes/Hook/HookActionCartUpdateQuantityBefore.php b/classes/Hook/HookActionCartUpdateQuantityBefore.php index ce7d32c..11ff82f 100644 --- a/classes/Hook/HookActionCartUpdateQuantityBefore.php +++ b/classes/Hook/HookActionCartUpdateQuantityBefore.php @@ -66,15 +66,14 @@ public function run() // Format product and standardize ID $product = (array) $this->params['product']; $product['id_product'] = $product['id']; - - // 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']; diff --git a/config.xml b/config.xml index 9fc803a..7d11231 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ ps_googleanalytics - + diff --git a/ps_googleanalytics.php b/ps_googleanalytics.php index bc9a711..3325f7b 100644 --- a/ps_googleanalytics.php +++ b/ps_googleanalytics.php @@ -47,7 +47,7 @@ public function __construct() { $this->name = 'ps_googleanalytics'; $this->tab = 'analytics_stats'; - $this->version = '5.0.1'; + $this->version = '5.0.2'; $this->ps_versions_compliancy = ['min' => '1.7.7', 'max' => _PS_VERSION_]; $this->author = 'PrestaShop'; $this->module_key = 'fd2aaefea84ac1bb512e6f1878d990b8';