added default configuration value for dashproducts

This commit is contained in:
Vincent Augagneur committed 2013-11-13 09:27:48 +01:00
1 parent 55fa826525
commit 582ad68875
1 file changed
+5
+5
View File
@@ -42,6 +42,11 @@ class Dashproducts extends Module
public function install() public function install()
{ {
Configuration::updateValue('DASHPRODUCT_NBR_SHOW_LAST_ORDER', 10);
Configuration::updateValue('DASHPRODUCT_NBR_SHOW_BEST_SELLER', 10);
Configuration::updateValue('DASHPRODUCT_NBR_SHOW_MOST_VIEWED', 10);
Configuration::updateValue('DASHPRODUCT_NBR_SHOW_TOP_SEARCH', 10);
if (!parent::install() || !$this->registerHook('dashboardZoneTwo') || !$this->registerHook('dashboardData')) if (!parent::install() || !$this->registerHook('dashboardZoneTwo') || !$this->registerHook('dashboardData'))
return false; return false;
return true; return true;