Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2007
    Posts
    169
    Plugin Contributions
    0

    Default Remove menu item from Admin Interface

    How to I remove an menu item from "Admin -> Tools"? Any edit to database required?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Remove menu item from Admin Interface

    No database edits required.

    Look in /admin/includes/boxes/....tools...
    and /admin/includes/boxes/extra_boxes/ ....tools...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Remove menu item from Admin Interface

    I am unsure about something similar, I want to add an item to the menu but I am not sure how...

    They way it's done is very confusing.. all i see is things such as:

    Code:
    $za_contents[] = array('text' => BOX_TOOLS_BANNER_MANAGER, 'link' => zen_href_link(FILENAME_BANNER_MANAGER, '', 'NONSSL'));
      $za_contents[] = array('text' => BOX_TOOLS_MAIL, 'link' => zen_href_link(FILENAME_MAIL, '', 'NONSSL'));
      $za_contents[] = array('text' => BOX_TOOLS_NEWSLETTER_MANAGER, 'link' => zen_href_link(FILENAME_NEWSLETTERS, '', 'NONSSL'));
      $za_contents[] = array('text' => BOX_TOOLS_SERVER_INFO, 'link' => zen_href_link(FILENAME_SERVER_INFO, '', 'NONSSL'));
      $za_contents[] = array('text' => BOX_TOOLS_WHOS_ONLINE, 'link' => zen_href_link(FILENAME_WHOS_ONLINE, '', 'NONSSL'));

    Where is the actual text that displays the name on the menu and link to each file? Can someone explain to me how zen_href_link() works?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Remove menu item from Admin Interface

    The text is defined in language constants defined in language files. ie: BOX_TOOLS_BANNER_MANAGER is defined in a language file, and its value will be inserted as appropriate. This allows the multilingual capabilities of Zen Cart to apply to admin menu choices.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Remove menu item from Admin Interface

    ah thank you, i see now :) DrByte are you the creator of zencart?

  6. #6
    Join Date
    Aug 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Remove menu item from Admin Interface

    If I want to add a completely new category, can someone explain to me what would be involved?

    I have a nice order browser that i've made and I want to implement it but I can't find any docs on how to create new menu categories or add to existing ones, I apologize if this is mean but it seems like they are all over the place but it will probably make sense once I read how it was setup to work..

  7. #7
    Join Date
    Aug 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Remove menu item from Admin Interface

    So i've got it figured out pretty much but where is zen_href_link located?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Remove menu item from Admin Interface

    To create a new menu item on an existing menu such as the "Customers" menu, there are 3 simple steps:

    1. Create a new file in the extra_boxes folder, perhaps like this:
    /admin/includes/boxes/extra_boxes/myorderbrowser_customers_dhtml.php
    and put the following inside it:
    Code:
    <?php
      $za_contents[] = array('text' => MYORDERBROWSER_LINK_TEXT, 'link' => zen_href_link(FILENAME_MYORDERBROWSER, '', 'NONSSL'));
    2. Then create a language file for the link name:
    /admin/includes/languages/english/extra_definitions/myorderbrowser_definitions.php
    Code:
    <?php
      define('MYORDERBROWSER_LINK_TEXT', 'My Order Browser');
    3. And define the filename in a new file as well:
    /admin/includes/extra_datafiles/myorderbrowser_filenames.php
    Code:
    <?php
    define('FILENAMES_MYORDERBROWSER', 'myorderbrowser.php');
    There are lots of examples of admin addons that have added extra menu items. One such example is the "Backup MySQL Plugin". You could use it for inspiration or as an example of the pattern to follow.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Extras Admin Menu Item - can I remove or add to it?
    By dkmojo in forum Customization from the Admin
    Replies: 14
    Last Post: 26 May 2018, 11:47 PM
  2. v139h Remove item from header menu
    By britdude in forum Customization from the Admin
    Replies: 2
    Last Post: 3 Sep 2012, 02:44 PM
  3. Replies: 2
    Last Post: 8 Jul 2010, 05:37 AM
  4. How to Remove Categories from Center after clicked from Navigation menu?
    By stlnyc in forum Customization from the Admin
    Replies: 0
    Last Post: 30 Oct 2008, 09:10 PM
  5. Remove Extras menu from my admin
    By dontknowwhatimdoing in forum General Questions
    Replies: 3
    Last Post: 12 Aug 2008, 10:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR