removed 'Save global page views' section where not required

This commit is contained in:
Shreesh Arora
2023-11-27 13:04:21 +05:30
parent ce93a9826f
commit 7b96fdf7b4
2 changed files with 1 additions and 8 deletions

View File

@@ -130,10 +130,6 @@ class StatsBestCategories extends ModuleGrid
<div class="panel-heading">
<i class="icon-sitemap"></i> '.$this->displayName.'
</div>';
if (!(Module::isEnabled('statsdata') && Configuration::get('PS_STATSDATA_PAGESVIEWS'))) {
$link = $this->context->link->getAdminLink('AdminModules').'&configure=statsdata';
$this->html .= '<div class="alert alert-info">'.$this->l('You must enable the "Save global page views" option from ').'<u><a href="'.$link.'" target="_blank">Data mining for statistics</a></u>'.$this->l(' module in order to display the most viewed hotels, or use the QloApps Google Analytics module.').'</div>';
}
$this->html .= $this->engine($engine_params).'
<div class="row form-horizontal">

View File

@@ -136,10 +136,7 @@ class StatsBestProducts extends ModuleGrid
}
$html = '<div class="panel-heading">'.$this->displayName.'</div>';
if (!(Module::isEnabled('statsdata') && Configuration::get('PS_STATSDATA_PAGESVIEWS'))) {
$link = $this->context->link->getAdminLink('AdminModules').'&configure=statsdata';
$html .= '<div class="alert alert-info">'.$this->l('You must enable the "Save global page views" option from ').'<u><a href="'.$link.'" target="_blank">Data mining for statistics</a></u>'.$this->l(' module in order to display the most viewed room types, or use the QloApps Google Analytics module.').'</div>';
}
$html .= $this->engine($engine_params).'
<a class="btn btn-default export-csv" href="'.Tools::safeOutput($_SERVER['REQUEST_URI'].'&export=1').'">
<i class="icon-cloud-download"></i> '.$this->l('CSV Export').'