Skip to content

Commit beb97fd

Browse files
[*] MO : Missing add to cart action
1 parent bc17545 commit beb97fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ps_googleanalytics.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ public function hookdisplayFooter()
397397
$ga_scripts = '';
398398
$this->js_state = 0;
399399
$gacarts = $this->_manageData("", "R");
400-
if (count($gacarts)>0) {
400+
$controller_name = Tools::getValue('controller');
401+
if (count($gacarts)>0 && $controller_name!='product') {
401402
$this->filterable = 0;
402403

403404
foreach ($gacarts as $gacart) {
@@ -416,7 +417,6 @@ public function hookdisplayFooter()
416417
$gacarts = $this->_manageData("", "D");
417418
}
418419

419-
$controller_name = Tools::getValue('controller');
420420
$listing = $this->context->smarty->getTemplateVars('listing');
421421
$products = $this->wrapProducts($listing['products'], array(), true);
422422

0 commit comments

Comments
 (0)