piernas Posted July 20, 2015 Share Posted July 20, 2015 I'm writing an app for automating a shipping method and need to add a new menu entry under orders that redirects to the addon admin page. I think I've read about a mechanism for automatically adding a new menu entry without touching the code but I can't find where. Can you help? Link to comment Share on other sites More sharing options...
piernas Posted July 20, 2015 Author Share Posted July 20, 2015 Nevermind, I found it myself. Just create a new php file under admin/includes/boxes with this code: <?php foreach ( $cl_box_groups as &$group ) { if ( $group['heading'] == BOX_HEADING_ORDERS ) { $group['apps'][] = array('code' => 'myfile.php', 'title' => 'mytitle', 'link' => tep_href_link('myfile.php')); break; } } ?> Link to comment Share on other sites More sharing options...
burt Posted July 21, 2015 Share Posted July 21, 2015 'title' => 'mytitle', to 'title' => SOME_DEFINE_ETC_ETC, otherwise you limit your addon to 1 language. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.