Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to automatically add a new admin menu entry for an app?


piernas

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...