Skip to content

Commit 2aa643f

Browse files
Merge pull request #166 from PrestaShop/dev
Release 5.0.2
2 parents efdc504 + 618ade8 commit 2aa643f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
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

config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<module>
33
<name>ps_googleanalytics</name>
44
<displayName><![CDATA[Google Analytics]]></displayName>
5-
<version><![CDATA[5.0.1]]></version>
5+
<version><![CDATA[5.0.2]]></version>
66
<description><![CDATA[Gain clear insights into important metrics about your customers, using Google Analytics]]></description>
77
<author><![CDATA[PrestaShop]]></author>
88
<tab><![CDATA[analytics_stats]]></tab>

ps_googleanalytics.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct()
4747
{
4848
$this->name = 'ps_googleanalytics';
4949
$this->tab = 'analytics_stats';
50-
$this->version = '5.0.1';
50+
$this->version = '5.0.2';
5151
$this->ps_versions_compliancy = ['min' => '1.7.7', 'max' => _PS_VERSION_];
5252
$this->author = 'PrestaShop';
5353
$this->module_key = 'fd2aaefea84ac1bb512e6f1878d990b8';

0 commit comments

Comments
 (0)