/**
  * @see ModuleCore::install()
  */
 public function install()
 {
     if (!parent::install() or !$this->registerHook('rightColumn') or !$this->registerHook('header') or !$this->registerHook('updateOrderStatus') or !ProductSale::fillProductSales()) {
         return false;
     }
     return true;
 }
Exemplo n.º 2
0
 /**
  * @see ModuleCore::install()
  */
 public function install()
 {
     if (!parent::install() || !$this->registerHook('DisplayContentBottom') || !$this->registerHook('header') || !$this->registerHook('updateOrderStatus') || !ProductSale::fillProductSales()) {
         return false;
     }
     return true;
 }
Exemplo n.º 3
0
 /**
  * @see ModuleCore::install()
  */
 public function install()
 {
     if (!parent::install() || !$this->registerHook('leftColumn') || !$this->registerHook('rightColumn') || !$this->registerHook('displayHome') || !$this->registerHook('tdPostSlider') || !$this->registerHook('displayfooter') || !$this->registerHook('updateOrderStatus') || !ProductSale::fillProductSales()) {
         return false;
     }
     return true;
 }
Exemplo n.º 4
0
 public function install()
 {
     $this->_clearCache('*');
     if (!parent::install() || !$this->registerHook('header') || !$this->registerHook('leftColumn') || !$this->registerHook('actionOrderStatusPostUpdate') || !$this->registerHook('addproduct') || !$this->registerHook('updateproduct') || !$this->registerHook('deleteproduct') || !$this->registerHook('displayHomeTab') || !$this->registerHook('displayHomeTabContent') || !ProductSale::fillProductSales()) {
         return false;
     }
     Configuration::updateValue('PS_BLOCK_BESTSELLERS_TO_DISPLAY', 10);
     return true;
 }
 /**
  * @see ModuleCore::install()
  */
 public function install()
 {
     $this->_clearCache('blockbestsellers.tpl');
     $this->_clearCache('blockbestsellers-home.tpl');
     if (!parent::install() || !$this->registerHook('rightColumn') || !$this->registerHook('header') || !$this->registerHook('actionOrderStatusPostUpdate') || !$this->registerHook('addproduct') || !$this->registerHook('updateproduct') || !$this->registerHook('deleteproduct') || !ProductSale::fillProductSales()) {
         return false;
     }
     return true;
 }
 public function install()
 {
     $this->_clearCache('*');
     if (!parent::install() || !$this->registerHook('header') || !$this->registerHook('actionOrderStatusPostUpdate') || !$this->registerHook('addproduct') || !$this->registerHook('updateproduct') || !$this->registerHook('deleteproduct') || !$this->registerHook('displayHomeTab') || !$this->registerHook('displayHomeTabContent') || !ProductSale::fillProductSales()) {
         return false;
     }
     // Hook the module either on the left or right column
     $theme = new Theme(Context::getContext()->shop->id_theme);
     if ((!$theme->default_left_column || !$this->registerHook('leftColumn')) && (!$theme->default_right_column || !$this->registerHook('rightColumn'))) {
         // If there are no colums implemented by the template, throw an error and uninstall the module
         $this->_errors[] = $this->l('This module need to be hooked in a column and your theme does not implement one');
         parent::uninstall();
         return false;
     }
     return true;
 }
Exemplo n.º 7
0
 /**
  * @see ModuleCore::install()
  */
 public function install()
 {
     return parent::install() && $this->registerHook('rightColumn') && $this->registerHook('header') && ProductSale::fillProductSales();
 }
Exemplo n.º 8
0
 public function install()
 {
     return parent::install() && $this->registerHook('rightColumn') && $this->registerHook('updateOrderStatus') && ProductSale::fillProductSales() && Configuration::updateValue('PRODUCTS_BESTSELLERS_NBR', 4) && Configuration::updateValue('PRODUCTS_BESTSELLERS_RANDOM', 1);
 }