This Zen Cart tutorial will teach zen cart users and store owners how to add new items into the menus in your zen cart admin. This tutorial will show you how to modify zen cart’s code to implement new menu items, so it would be best if you had some basic knowledge of php/css, and the zen cart file structure before attempting this.
For this tutorial, we will assume that the new item you want to put into your zen cart admin menu is a tool called new_item.php, and you want to put it into the ‘tools’ menu. For this exercise, it should be noted that many of the files distributed in the new_item.zip file are identical to files that can be found in older versions of zen cart.
The first thing you need to do is familiarize yourself with some of the files you will need to work with.
/YOUR_ADMIN/new_item.php is the name of the file that will contain the code needed to implement your new admin tool.
/YOUR_ADMIN/includes/extra_datafiles/new_tool_filenames.php has the file name that will be used to define your new tool(e.g. define(I.e., ‘FILENAME_NEW_TOOL’, ‘new_item’)
/YOUR_ADMIN/includes/languages/english/extra_definitions/new_tool_name.php holds the menu entry text definition for the new tool(I.e., ‘define(‘BOX_TOOLS_NEW_TOOL’, ‘New Tool’))
/YOUR_ADMIN/includes/languages/english/new_tool.php is the file containing language-specific definitions for your tool. The name of the language file should match the name of the tool.
It is also important to remember that the file you distribute to, which will actually add new_item.php to the Tools menu, is different in zen cart v1.5.0 and higher than in older versions. In earlier versions of Zen Cart, the distributed file file is named /YOUR_ADMIN/includes/boxes/extra_boxes/newtool_tools_dhtml.php. this file contains this line of code:
$za_contents = array('text' => BOX_TOOLS_NEW_TOOL, 'link' => zen_href_link(FILENAME_NEW_TOOL, '', 'SSL'));
If you need help with your zen cart web site please contact us for a quote.