From 7b96fdf7b4c9aedba046439c7f8a7cfd9bae1782 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Mon, 27 Nov 2023 13:04:21 +0530 Subject: [PATCH] removed 'Save global page views' section where not required --- modules/statsbestcategories/statsbestcategories.php | 4 ---- modules/statsbestproducts/statsbestproducts.php | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/statsbestcategories/statsbestcategories.php b/modules/statsbestcategories/statsbestcategories.php index 1b6feb710..f776d314d 100644 --- a/modules/statsbestcategories/statsbestcategories.php +++ b/modules/statsbestcategories/statsbestcategories.php @@ -130,10 +130,6 @@ class StatsBestCategories extends ModuleGrid
'.$this->displayName.'
'; - if (!(Module::isEnabled('statsdata') && Configuration::get('PS_STATSDATA_PAGESVIEWS'))) { - $link = $this->context->link->getAdminLink('AdminModules').'&configure=statsdata'; - $this->html .= '
'.$this->l('You must enable the "Save global page views" option from ').'Data mining for statistics'.$this->l(' module in order to display the most viewed hotels, or use the QloApps Google Analytics module.').'
'; - } $this->html .= $this->engine($engine_params).'
diff --git a/modules/statsbestproducts/statsbestproducts.php b/modules/statsbestproducts/statsbestproducts.php index fbfff36f1..788dd72b9 100644 --- a/modules/statsbestproducts/statsbestproducts.php +++ b/modules/statsbestproducts/statsbestproducts.php @@ -136,10 +136,7 @@ class StatsBestProducts extends ModuleGrid } $html = '
'.$this->displayName.'
'; - if (!(Module::isEnabled('statsdata') && Configuration::get('PS_STATSDATA_PAGESVIEWS'))) { - $link = $this->context->link->getAdminLink('AdminModules').'&configure=statsdata'; - $html .= '
'.$this->l('You must enable the "Save global page views" option from ').'Data mining for statistics'.$this->l(' module in order to display the most viewed room types, or use the QloApps Google Analytics module.').'
'; - } + $html .= $this->engine($engine_params).' '.$this->l('CSV Export').'