TheGGTheory Posted March 4, 2016 Share Posted March 4, 2016 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'); } Link to comment Share on other sites More sharing options...
TheGGTheory Posted March 8, 2016 Author Share Posted March 8, 2016 Up Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now