Ecshop background management menu Modification

Source: Internet
Author: User

In ecshop, there are two files related to the background menu:

· Menu item: admin \ des \ inc_menu.php
· Menu text: Ages \ zh_cn \ admin \ common. php

Therefore, to modify the menu, you must modify the two files.

Theoretical Basis

1). Manage menu items

The inc_menu.php file is used to manage the number of menus, display sequence, and links. The content of the file is shown as follows:

Program code$ Modules ['02 _ cat_and_goods '] ['01 _ goods_list'] = 'goods. php? Act = list'; // product list
$ Modules ['02 _ cat_and_goods '] ['02 _ goods_add'] = 'goods. php? Act = add'; // Add Product
$ Modules ['02 _ cat_and_goods '] ['03 _ category_list'] = 'category. php? Act = list ';
$ Modules ['02 _ cat_and_goods '] ['05 _ comment_manage'] = 'comment _ manage. php? Act = list ';
$ Modules ['02 _ cat_and_goods '] ['06 _ goods_brand_list'] = 'brand. php? Act = list ';
$ Modules ['02 _ cat_and_goods '] ['08 _ goods_type'] = 'goods _ type. php? Act = manage ';
$ Modules ['02 _ cat_and_goods '] ['11 _ goods_trash'] = 'goods. php? Act = trash '; // item Recycle Bin
$ Modules ['02 _ cat_and_goods '] ['12 _ batch_pic'] = 'picture _ batch. php ';
$ Modules ['02 _ cat_and_goods '] ['13 _ batch_add'] = 'goods _ batch. php? Act = add'; // batch upload of items
$ Modules ['02 _ cat_and_goods '] ['14 _ goods_export'] = 'goods _ export. php? Act = goods_export ';
$ Modules ['02 _ cat_and_goods '] ['15 _ batch_edit'] = 'goods _ batch. php? Act = select '; // modify items in batches
$ Modules ['02 _ cat_and_goods '] ['16 _ goods_script'] = 'gen _ goods_script.php? Act = setup ';
$ Modules ['02 _ cat_and_goods '] ['17 _ tag_manage'] = 'tag _ manage. php? Act = list ';
$ Modules ['02 _ cat_and_goods '] ['50 _ virtual_card_list'] = 'goods. php? Act = List & extension_code = virtual_card ';
$ Modules ['02 _ cat_and_goods '] ['51 _ virtual_card_add'] = 'goods. php? Act = add & extension_code = virtual_card ';
$ Modules ['02 _ cat_and_goods '] ['52 _ virtual_card_change'] = 'virtual _ card. php? Act = change ';
$ Modules ['02 _ cat_and_goods '] ['goods _ auto'] = 'goods _ auto. php? Act = list ';

$ Modules ['03 _ promotion '] ['02 _ snatch_list'] = 'snatch. php? Act = list ';
$ Modules ['03 _ promotion '] ['04 _ bonustype_list'] = 'bonus. php? Act = list ';
$ Modules ['03 _ promotion '] ['06 _ pack_list'] = 'pack. php? Act = list ';
$ Modules ['03 _ promotion '] ['07 _ card_list'] = 'Card. php? Act = list ';
$ Modules ['03 _ promotion '] ['08 _ group_buy'] = 'group _ buy. php? Act = list ';
$ Modules ['03 _ promotion '] ['09 _ TOPIC'] = 'topic. php? Act = list ';
$ Modules ['03 _ promotion '] ['10 _ auction'] = 'auction. php? Act = list ';
$ Modules ['03 _ promotion '] ['12 _ favourable'] = 'favourable. php? Act = list ';
$ Modules ['03 _ promotion '] ['13 _ wholesale'] = 'wholesale. php? Act = list ';
$ Modules ['03 _ promotion '] ['14 _ package_list'] = 'package. php? Act = list ';
// $ Modules ['03 _ promotion '] ['ebao _ commend'] = 'ebao _ commend. php? Act = list ';
$ Modules ['03 _ promotion '] ['15 _ exchange_goods'] = 'exchange _ goods. php? Act = list ';

The program should know that this is a two-dimensional array in the following format:

Program code$ Modules ['level 1 category'] ['level 2 category'] = 'link address ';

They are displayed in order on the page. They are sorted by category names!

2). Menu Text Management

I may have asked, what about the menu text? The 01_goods_list and 02_goods_add types of text cannot be displayed. This requires the common. php file. Since most of us use simplified Chinese, modify ages \ zh_cn \ admin \ common. you can use the PHP file. If you want to use traditional Chinese, modify ages \ zh_tw \ admin \ common. PHP, and others. The file content is shown as follows:

Program code/* Menu category */
$ _ Lang ['02 _ cat_and_goods '] = 'item management ';
$ _ Lang ['03 _ promotion '] = 'sales promotion management ';
$ _ Lang ['04 _ order'] = 'order management ';
$ _ Lang ['05 _ banner '] = 'ad management ';
$ _ Lang ['06 _ stats'] = 'report statistics ';
$ _ Lang ['07 _ content'] = 'Article management ';
$ _ Lang ['08 _ members '] = 'Member management ';
$ _ Lang ['09 _ others '] = 'miscellaneous management ';
$ _ Lang ['10 _ priv_admin '] = 'permission management ';
$ _ Lang ['11 _ system'] = 'System settings ';
$ _ Lang ['12 _ template'] = 'template management ';
$ _ Lang ['13 _ backup'] = 'database management ';
$ _ Lang ['14 _ Ms'] = 'sms management ';
$ _ Lang ['15 _ rec '] = 'recommendation management ';
$ _ Lang ['16 _ email_manage'] = 'group mailing management ';

/* Product management */
$ _ Lang ['01 _ goods_list '] = 'item list ';
$ _ Lang ['02 _ goods_add'] = 'Add a commodity ';
$ _ Lang ['03 _ category_list '] = 'item category ';
$ _ Lang ['04 _ category_add'] = 'add category ';
$ _ Lang ['05 _ comment_manage '] = 'user comment ';
$ _ Lang ['06 _ goods_brand_list '] = 'item brands ';
$ _ Lang ['07 _ brand_add'] = 'Add a brand ';
$ _ Lang ['08 _ goods_type '] = 'item type ';
$ _ Lang ['09 _ attribute_list '] = 'item attribute ';
$ _ Lang ['10 _ attribute_add'] = 'add attribute ';
$ _ Lang ['11 _ goods_trash '] = 'item recycle bin ';
$ _ Lang ['12 _ batch_pic '] = 'batch image processing ';
$ _ Lang ['13 _ batch_add'] = 'upload items in bulk ';
$ _ Lang ['15 _ batch_edit '] = 'item batch modify ';
$ _ Lang ['16 _ goods_script '] = 'generate product Code ';
$ _ Lang ['17 _ tag_manage '] = 'tagmanagement ';
$ _ Lang ['18 _ product_list '] = 'goods list ';
$ _ Lang ['52 _ attribute_add'] = 'edit attribute ';
$ _ Lang ['53 _ suppliers_goods '] = 'Supplier commodity management ';

The format is as follows:

Program code$ _ Lang ['level 1 or Level 2 category'] = 'show text ';

Practical management menu Modification

Open inc_menu.php and find:

Program code$ Modules ['07 _ content'] ['03 _ article_list '] = 'Article. php? Act = list ';
$ Modules ['07 _ content'] ['02 _ articlecat_list '] = 'articlecat. php? Act = list ';
$ Modules ['07 _ content'] ['vote _ list'] = 'vote. php? Act = list ';
$ Modules ['07 _ content'] ['Article _ auto'] = 'Article _ auto. php? Act = list ';
// $ Modules ['07 _ content'] ['shop _ help'] = 'shophelp. php? Act = list_cat ';
// $ Modules ['07 _ content'] ['shop _ info'] = 'shopinfo. php? Act = list ';

Modify as follows:

Program code$ Modules ['07 _ content'] ['01 _ article_add'] = 'Article. php? Act = add ';
$ Modules ['07 _ content'] ['02 _ article_list '] = 'Article. php? Act = list ';
$ Modules ['07 _ content'] ['03 _ articlecat_list '] = 'articlecat. php? Act = list ';
$ Modules ['07 _ content'] ['vote _ list'] = 'vote. php? Act = list ';
$ Modules ['07 _ content'] ['Article _ auto'] = 'Article _ auto. php? Act = list ';
// $ Modules ['07 _ content'] ['shop _ help'] = 'shophelp. php? Act = list_cat ';
// $ Modules ['07 _ content'] ['shop _ info'] = 'shopinfo. php? Act = list ';

Open common. php and find:

Program code$ _ Lang ['02 _ articlecat_list '] = 'document category ';
$ _ Lang ['articlecat _ add'] = 'add document category ';
$ _ Lang ['03 _ article_list '] = 'Article list ';
$ _ Lang ['Article _ add'] = 'add new files ';
$ _ Lang ['shop _ article'] = 'Online shop files ';
$ _ Lang ['shop _ info'] = 'Online shop information ';
$ _ Lang ['shop _ help'] = 'Online shop help ';
$ _ Lang ['vote _ list'] = 'Online survey ';

Modify as follows:

Program code/* Article management */
$ _ Lang ['03 _ articlecat_list '] = 'document category ';
$ _ Lang ['articlecat _ add'] = 'add document category ';
$ _ Lang ['02 _ article_list '] = 'Article list ';
$ _ Lang ['01 _ article_add'] = 'Add a new article ';
$ _ Lang ['shop _ article'] = 'Online shop files ';
$ _ Lang ['shop _ info'] = 'Online shop information ';
$ _ Lang ['shop _ help'] = 'Online shop help ';
$ _ Lang ['vote _ list'] = 'Online survey ';

After saving, refresh the page and you will see the "Add new article" menu added, and the order has changed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.