Ecshop后台订单列表增加”商品名”检索字段
发布时间:12/03 来源: 浏览:
关键词:
近期ecshop网站做活动,统计商品订单量的时候没有按商品名搜索的选项,只能手动查询。这样效率很低下,而且容易出错。
现在为列表增加一个简单的“按商品名搜索”表单项。效果如下图
涉及到2个文件,分别是/admin/order.php,/admin/templates/order_list.htm,下面详说。
第一步,增加表单项
在/admin/templates/order_list.htm第11行下面增加
1 | 商品名< input name = "goods_name" type = "text" id = "goods_name" size = "15" > |
这样,代码上下文基本为
1 | {$lang.order_sn}< input name = "order_sn" type = "text" id = "order_sn" size = "15" > |
2 | {$lang.consignee|escape}< input name = "consignee" type = "text" id = "consignee" size = "15" > |
3 | 商品名< input name = "goods_name" type = "text" id =
相关文章 |