1、公司网络互联商城1_ECSHOP 去版权与标志 .12_后台开发 为订单增加备注功能 .53_将订单状态设为等待客户确认 .94_商品扩展名功能开发 .105_多货币解决方案的开发 .136_AJAX 实现购物车数量功能开发 .207_AJAX 实现产品页的购买数量 .238_商品展示放大镜效果 .249_产品页的颜色选择器功能开发 .401_ECSHOP 去版权与标志摘要:1:去掉头部 TITLE 部分的 ECSHOP 演示站 Powered by ecshop 2.去掉友情链接部分 3.去掉底部的 Powered by ecshop v2.7.0 1.去除两张图片2.右上角的“关于ECSH
2、OP” 3.中部 ECSHOP 管理中心, 和底部的版权所有关键字:去除 ecshop 系统默认版权;去除默认图标前台部分:1:去掉头部 TITLE 部分的 ECSHOP 演示站 Powered by ecshop前者在后台商店设置 - 商店标题修改后者打开 includes/lib_main.php$page_title = $GLOBALS_CFGshop_title . - . Powered by ECShop;修改这里的Powered by ECShop2.去掉友情链接部分在后台的友情链接管理里修改3.去掉底部的 Powered by ecshop v2.7.0打开 js/commo
3、n.js 删除第 244 行:onload = function()第 244 行函数如下:onload = function()var link_arr = document.getElementsByTagName(String.fromCharCode(65);var link_str;var link_text;var regg, cc;var rmd, rmd_s, rmd_e, link_eorr = 0;var e = new Array(97, 98, 99,100, 101, 102, 103, 104, 105, 106, 107, 108, 109,110, 111, 1
4、12, 113, 114, 115, 116, 117, 118, 119,120, 121, 122);tryfor(var i = 0; i 应该也算是 ECSHOP 预留的版权信息吧,下面讲一下怎么删除这行代码,让系统不再自动产生。打开 includes/cls_template.php 文件,大概在 1087 行左右,找到$source = preg_replace(/i, “rn“, $source);将之删除或者注释掉即可。后台部分:1.去除两张图片admin/images/ecshop_logo.gifadmin/images/login.png2.右上角的“关于 ECSHOP”
5、打开 admin/templates/top.htm删除: $lang.about3.中部 ECSHOP 管理中心, 和底部的版权所有打开 language/zh_cn/admin/common.php修改$_LANGcp_home = ECSHOP 管理中心;$_LANGcopyright = 版权所有 2005-2009 上海商派网络科技有限公司,并保留所有权利。;2_后台开发为订单增加备注功能摘要:1.添加表:ecs_order_note; 2.添加语言包 -languageszh_cnadminorder.php 3.修改 admin/order.php 文件第 103 行, 添加代码
6、: 4.在以下代码下加入 5.修改 admintemplatesorder_info.htm 文件关键字:订单备注;添加订单;备注功能ECSHOP 后台为订单增加备注功能1. 添加表:ecs_order_note;CREATE TABLE IF NOT EXISTS ecs_order_note (note_id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,order_id mediumint(8) unsigned NOT NULL,note_value text NOT NULL,PRIMARY KEY (note_id) ENGINE=My
7、ISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;2.添加语言包 -languageszh_cnadminorder.php/* 订单备注*/$_LANGlabel_order_note = 客服人员订单备注:;3. 修改 admin/order.php 文件第 103 行,添加代码:/*- */- 保存订单备注/*- */ elseif ($_REQUESTact = save_ordernote)$oid = $_REQUESToid;$oval = $_REQUESTnoteVal;$sql = “select count(note_value) f
8、rom “ . $ecs-table(order_note) .“ where order_id = $oid“;$note_count = $db-getOne($sql);if ($note_count = 0)$sql = “insert into “ . $ecs-table(order_note) .“(order_id,note_value) values(“ . $oid . “,“ . $oval . “)“; else$sql = “update “ . $ecs-table(order_note) . “ set note_value = “ . $oval .“ wher
9、e order_id = “ . $oid;$db-query($sql);/echo “订单备注已保存!“;4.在以下代码下加入/* 取得能执行的操作列表 */ $operable_list = operable_list($order);$smarty-assign(operable_list, $operable_list);/* 取得订单备注- */$sql = “SELECT note_value FROM “ . $ecs-table(order_note) .“ WHERE order_id = $orderorder_id“;$order_note = $db-getOne($
10、sql);$smarty-assign(order_note, $order_note);5.修改 admintemplatesorder_info.htm 文件,$lang.label_action_note在上面代码后面加入以下代码:$lang.label_order_note$order_note在本文件 admintemplatesorder_info.htm 的 JS 代码中加入下面内容/* 保存订单备注*/function saveOrderNote(oid,parm)var noteVal = parm.value;Ajax.call(order.php?is_ajax=1fun
11、ction saveOrderResponse(result)/alert(result);删除订单时删除关联的订单备注 admin/order.php找到下面代码:/* 删除订单 */$db-query(“DELETE FROM “.$ecs-table(order_info). “ WHERE order_id = $order_id“);$db-query(“DELETE FROM “.$ecs-table(order_goods). “ WHERE order_id = $order_id“);$db-query(“DELETE FROM “.$ecs-table(order_acti
12、on). “ WHERE order_id = $order_id“);在后面直接加入以下代码:(单个删除)/*根据订单编号,删除对应订单备注*/$db-query(“DELETE FROM “ .$ecs-table(order_note) . “ WHERE order_id = $order_id“);批量删除,找到以下代码:约 3000 行后面/* 删除订单 */$db-query(“DELETE FROM “.$ecs-table(order_info). “ WHERE order_id = $orderorder_id“);$db-query(“DELETE FROM “.$ec
13、s-table(order_goods). “ WHERE order_id = $orderorder_id“);$db-query(“DELETE FROM “.$ecs-table(order_action). “ WHERE order_id = $orderorder_id“);直接加入以下代码:/*根据订单编号,删除对应订单备注(批量删除)*/$db-query(“DELETE FROM “ .$ecs-table(order_note) . “ WHERE order_id = $orderorder_id“);在以下代码$GLOBALSdb-query(“DELETE FROM
14、 “.$GLOBALSecs-table(order_info). “ WHERE order_id = $order_id“);$GLOBALSdb-query(“DELETE FROM “.$GLOBALSecs-table(order_goods). “ WHERE order_id = $order_id“);$GLOBALSdb-query(“DELETE FROM “.$GLOBALSecs-table(order_action). “ WHERE order_id = $order_id“);后面加入以下代码/*根据订单编号,删除对应订单备注*/$GLOBALSdb-query(
15、“DELETE FROM “.$GLOBALSecs-table(order_note). “ WHERE order_id = $order_id“);3_将订单状态设为等待客户确认摘要:1.修改includeslib_payment.php 文件,使网上支付成功后,订单状态为等待客户确认. 2.修改根目录下的 flow.php 文件,使用余额付款时订单状态为等客服确认,只需把/$orderorder_status = OS_CONFIRMED;注解掉,或都改为$orderorder_status = OS_UNCONFIRMED; 3.修改 Admin order.php,使操作记录订单状
16、态而非未付款有两处:一个是批处理订单,二是操作订单状态(处理提交)关键字:订单状态;等待客服确认将订单状态设为等待客户确认1.修改includeslib_payment.php 文件,使网上支付成功后,订单状态为等待客户确认/* 修改订单状态为已付款 */$sql = UPDATE . $GLOBALSecs-table(order_info) .“ SET order_status = “ . OS_CONFIRMED . “, “ .“ confirm_time = “ . gmtime() . “, “ .“ pay_status = $pay_status, “ .“ pay_time
17、 = “.gmtime().“, “ .“ money_paid = order_amount,“ .“ order_amount = 0 “.“WHERE order_id = $order_id“;$GLOBALSdb-query($sql);/* 记录订单操作记录 */order_action($order_sn, OS_CONFIRMED, SS_UNSHIPPED, $pay_status, $note, $GLOBALS_LANGbuyer);修改为:/* 修改订单状态为已付款 */$sql = UPDATE . $GLOBALSecs-table(order_info) .“ SET order_status = “ . OS_UNCONFIRMED . “, “ .“ confirm_time = “ . gmtime() . “, “ .“ pay_status = $pay_status, “ .