Admin menu item is missing

I can’t find an item in my Admin menu

Admin menu items are controlled by the following factors:

  1. Profile Permissions

    If you are logged into Admin with a user whose profile doesn’t have access to that page, then the menu option won’t display for you.

    See Admin Profiles for more information.

  2. A database entry in the admin_pages table. Here is an example of the creation of such an entry being added:

INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('pricepop', 'BOX_TOOLS_PRICEPOP', 'FILENAME_PRICEPOP', '', 'tools', 'Y', 500);

(Note that BOX_TOOLS_PRICEPOP and FILENAME_PRICEPOP must be defined as noted below.)

  1. Text strings defined to display the item

Menu options don’t display if the FILENAME_ or BOX_ constants for them aren’t defined.

These constants are defined in various places:

  • /includes/filenames.php (for core system files, not plugins)
  • /admin/includes/languages/english.php (for core system files, not plugins)
  • /admin/includes/extra_datafiles/*.php (for plugins)
  • /admin/includes/languages/english/extra_definitions/*.php (for plugins)

(And for other languages, consult the corresponding language directories/files.)

Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified April 28, 2021 by Scott C Wilson (f2bfb45).