lembi2001 Posted May 10, 2015 Share Posted May 10, 2015 (edited) Hi all I am using a template purchased through Monster Templates (http://www.templatemonster.com/demo/52993.html) I know monster have a history of butchering some templates to the point where it is sometimes almost impossible to edit them manually. I have got to a point where I would like to change the options displayed in the top menu. After some googling I have managed to identify the file responsible for displaying the menu. The file is catalog\includes\modules\boxes\h_menu.php It contains the following code: <?php class h_menu { var $code = 'h_menu'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; var $pages; function h_menu() { $this->title = MODULE_BOXES_HEADER_MENU_TITLE; $this->description = MODULE_BOXES_HEADER_MENU_DESCRIPTION; if ( defined('MODULE_BOXES_HEADER_MENU_STATUS') ) { $this->sort_order = MODULE_BOXES_HEADER_MENU_SORT_ORDER; $this->enabled = (MODULE_BOXES_HEADER_MENU_STATUS == 'True'); $this->pages = MODULE_BOXES_HEADER_MENU_DISPLAY_PAGES; $this->group = ((MODULE_BOXES_HEADER_MENU_CONTENT_PLACEMENT == 'Header Top') ? 'header_top' : 'header'); } } function execute() { global $cart, $oscTemplate; global $oscTemplate, $current_page; if ($current_page == FILENAME_DEFAULT) { $button_act1 = "act"; } if ($current_page == FILENAME_SHIPPING) { $button_act2 = "act"; } if ($current_page == FILENAME_TOPSELLERS_PRODUCTS) { $button_act3 = "act"; } if ($current_page == FILENAME_MANUFACTURERS) { $button_act4 = "act"; } if ($current_page == FILENAME_CONTACT_US) { $button_act5 = "act"; } if ($current_page == FILENAME_ADVANCED_SEARCH) { $button_act6 = "act"; } $data = ' <ul id="headerShortcuts" class="btn-group">' . ' ' . ' <li class="'.$button_act1.'"> ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_DEFAULT,'',tep_href_link(FILENAME_DEFAULT)) . ' </li> ' . ' ' . ' <li class="'.$button_act2.'"> ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_FEATURED,'',tep_href_link(FILENAME_FEATURED_PRODUCTS)) . ' </li> ' . ' ' . ' <li class="'.$button_act3.'"> ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_TOPSELLERS,'',tep_href_link(FILENAME_TOPSELLERS_PRODUCTS)) . ' </li> ' . ' ' . ' <li class="'.$button_act4.'"> ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_MANUFACTURERS,'',tep_href_link(FILENAME_MANUFACTURERS)) . ' </li> ' . ' ' . ' <li class="'.$button_act5.'"> ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_CONTACT_US,'',tep_href_link(FILENAME_CONTACT_US)) . ' </li> ' . ' ' . ' <li class="'.$button_act6.'"> ' . tep_draw_button(MODULE_BOXES_HEADER_MENU_ADVANCED_SEARCH,'',tep_href_link(FILENAME_ADVANCED_SEARCH)) . ' </li> '. ' </ul>'; I understand that I need to modify the lines resembling - tep_draw_button(MODULE_BOXES_HEADER_MENU_DEFAULT,'',tep_href_link(FILENAME_DEFAULT)) however I cannot find the correct file to reference. I understand that the filename is referenced in FIILeNAME_ section however I have tried modifying both: catalog\includes\filenames.php catalog\admin\includes\filenames.php If I modify either of these files to include and reference the pages I want then the menu displays the MODULE_BOXES_HEADER_MENU_ text instead of the title of the page. Can anyone help me with this please?? Edited May 10, 2015 by lembi2001 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.