Pages

Tuesday, May 22, 2012

Add new page at adminpanel in zencart 1.5.0

   
1. If want to add new parent menu than insert manually menu in "admin_menus" table
   
2. create new file into admin folder "YourPageName.php"

3. Create new file into "adminpanel/includes/extra_datafiles" with below code:
   
    if (!defined('IS_ADMIN_FLAG')) {
        die('Illegal Access');
    }
    /**
     * Database name defines
     *
     */
    define('TABLE_YOUR_TABLE_NAME', DB_PREFIX . 'table_name'); /* If you want to create new table */
    define('FILENAME_YOUR_PAGE_NAME', 'YourPageName');

    define('BOX_CATALOG_ADDITIONAL_IMAGES', 'Your Page Name'); /* Its for navigation menu. Using BOX_CATALOG_YOUR_PAGE_NAME you can add this menu below "Catalog" section . Or you can choose different bos from "admin_menus" table */
   
4. Create new file at "adminpanel/includes/languages/english" and its name like "YourPageName.php"

5. Now register admin page from "Admin Page Registration" under "admin access management menu"
    Here, you can set your page.

No comments: