hugoromor Posted May 27, 2017 Share Posted May 27, 2017 (edited) I am trying to add a tab with fields to the product page and content to order, this is what I have in mymodule.php public function hookDisplayAdminProductsExtra($params) { $this->context->smarty->assign(array('params' => $params)); return $this->display(__FILE__, 'mymodule.tpl'); } public function hookDisplayAdminOrderContentOrder($params) { $this->context->smarty->assign(array('params' => $params)); return $this->display(__FILE__, 'mymodule.tpl'); } Edited May 27, 2017 by hugoromor (see edit history) Link to comment Share on other sites More sharing options...
phinq1910 Posted May 27, 2017 Share Posted May 27, 2017 File mymodule.tpl need exist in /modules/mymodule/ folder Try check it. Link to comment Share on other sites More sharing options...
hugoromor Posted May 27, 2017 Author Share Posted May 27, 2017 (edited) It does exists, indeed, what does it has to contain? this is what it currently has: <div class="product-tab-content" id="product-tab-content-mymodule" style="display: block;"> <div class="panel product-tab" id="product-mymodule"> <h3 class="tab"> <i class="icon-info"></i> {l s='My module' mod='mymodule'}</h3> <pre>{$params|@print_r}</pre> </div> </div> Edited May 27, 2017 by hugoromor (see edit history) 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