Skip to content

Commit

Permalink
Merge pull request #166 from PrestaShop/dev
Browse files Browse the repository at this point in the history
Release 5.0.2
  • Loading branch information
matthieu-rolland authored Mar 4, 2024
2 parents efdc504 + 618ade8 commit 2aa643f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions classes/Hook/HookActionCartUpdateQuantityBefore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>ps_googleanalytics</name>
<displayName><![CDATA[Google Analytics]]></displayName>
<version><![CDATA[5.0.1]]></version>
<version><![CDATA[5.0.2]]></version>
<description><![CDATA[Gain clear insights into important metrics about your customers, using Google Analytics]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[analytics_stats]]></tab>
Expand Down
2 changes: 1 addition & 1 deletion ps_googleanalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 2aa643f

Please sign in to comment.