We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0667fbf commit 781e859Copy full SHA for 781e859
1 file changed
ps_googleanalytics.php
@@ -320,7 +320,7 @@ public function hookdisplayFooter()
320
if (isset($this->context->cookie->ga_cart)) {
321
$this->filterable = 0;
322
323
- $gacarts = json_decode($this->context->cookie->ga_cart);
+ $gacarts = json_decode($this->context->cookie->ga_cart, true);
324
if (is_array($gacarts)) {
325
foreach ($gacarts as $gacart) {
326
if ($gacart['quantity'] > 0) {
@@ -773,7 +773,7 @@ public function hookactionCartSave()
773
}
774
775
776
- $gacart = json_decode($this->context->cookie->ga_cart);
+ $gacart = json_decode($this->context->cookie->ga_cart, true);
777
} else {
778
$gacart = array();
779
0 commit comments