Jump to content

Backoffice Navbar Changes


Recommended Posts

Hello everyone, i've some questions.
I need to add a new voice to the order menu into the sidebars(screen1) and has to be a copy of the orders page(screen 2).Using the hookDisplayAdminOrder everthing i'm adding  goes into the order detail page(screen 3). 

Which hooks should i use?

  public function install()
  {
    if (Shop::isFeatureActive())
      Shop::setContext(Shop::CONTEXT_ALL);

    if (!parent::install() ||
      !$this->registerHook('displayAdminOrder')||
      !Configuration::updateValue('MYMODULE_NAME','my module')
    )
      return false;
    return true;
  }

  public function uninstall()
  {
    if (!parent::uninstall() || !Configuration::deleteByName('MYMODULE_NAME'))
      return false;
    return true;
  }

  public function hookDisplayAdminOrder($params)
  {
    $this->context->smarty->assign(
      array(
        'my_module_name' => Configuration::get('MYMODULE_NAME'),
        'my_module-link' => $this->context->link->getModuleLink('mymodule', 'display')
      )
    );
    return $this->display(__FILE__, 'mymodule.tpl');
  }

post-1199642-0-38396200-1457093064_thumb.png
post-1199642-0-47288500-1457093068_thumb.png
post-1199642-0-75752100-1457092886_thumb.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...