How to add a new menu in admin not menu item a new menu
[Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]
zencart 139h
need advice to add anew menu like reports , tools , extra etc.
I am asking about adding menu not menu items
Kindly advice
thanks in advance
Re: How to add a new menu in admin not menu item a new menu
Since 1.5.x: You need to ad a new item to the table "admin_menus"
see my example:
Code:
INSERT INTO `admin_menus` (`menu_key`, `language_key`, `sort_order`) VALUES('example', 'BOX_HEADING_EXAMPLE', '12')
Also need to add a new language define in "your_admin/includes/languages/your_language/extra_definitions/your_file.php
Re: How to add a new menu in admin not menu item a new menu
Quote:
Originally Posted by
diptimoy
zencart 139h
need advice to add anew menu like reports , tools , extra etc.
I am asking about adding menu not menu items
Kindly advice
thanks in advance
For ZC 139h you would look at the folder YOUR_RENAME_ADMIN/includes/boxes . I would pick a simple one like extras_dhtml.php and copy and rename something like my_menu_dhtml.php Then start modifying it to your needs. Rename the defines like BOX_HEADING_EXTRAS and add the new defines to your main language folder YOUR_RENAME_ADMIN/includes/english/my_menu.php Finely if you create new patch to files, be sure to create a new file name patch file in YOUR_RENAME_ADMIN/includes/extra_datafiles/my_menu_filenames.php
You more then likely heard this before, but I would consider upgrading to the more advance ZC 155f to make this whole process as simple as adding it to the admin menu data table. Once added, then its simply adding items to that menu. Theres even a mod to make this process even quicker, but not for ZC 139h.
Re: How to add a new menu in admin not menu item a new menu
Quote:
Originally Posted by
davewest
Theres even a mod to make this process even quicker, but not for ZC 139h.
Which mod is this? I'm interested in knowing and others may as well. :)
Re: How to add a new menu in admin not menu item a new menu
Quote:
Originally Posted by
mc12345678
Which mod is this? I'm interested in knowing and others may as well. :)
A quick search of plugins came up with Admin Page Keys for ZC 151 https://www.zen-cart.com/downloads.php?do=file&id=1653
Not a ZC 139h fix.. I've not tried this one. I use my own modified page registration file that allows me to do allot more.