public function initToolbar() { parent::initToolbar(); if ($this->is_seller) { unset($this->toolbar_btn['stats']); } }
public function initToolbar() { parent::initToolbar(); if ($this->display == 'edit' || $this->display == 'add') { $this->toolbar_btn['save'] = array('short' => 'Save', 'href' => '#', 'desc' => $this->l('Save')); $this->toolbar_btn['save-and-stay'] = array('short' => 'SaveAndStay', 'href' => '#', 'desc' => $this->l('Save and stay')); $this->toolbar_btn['newCombination'] = array('short' => 'New combination', 'desc' => $this->l('New combination'), 'class' => 'toolbar-new'); } else { $this->toolbar_btn['import'] = array('href' => $this->context->link->getAdminLink('AdminImport', true) . '&import_type=products', 'desc' => $this->l('Import')); } $this->context->smarty->assign('toolbar_scroll', 1); $this->context->smarty->assign('show_toolbar', 1); $this->context->smarty->assign('toolbar_btn', $this->toolbar_btn); }