摘要:先在网站根目录打开文件includes/lib_transaction.php查找代码$sql = "SELECT order_id, order_sn, order_status, shipping_status, pay_status, add_time, " .修改成$sql = "SELECT order_id, order_sn, order_status, shipping_status,consignee, pay_status, add_time, " .继续查找代码$row['order_status'] = $GLOB
阅读全文
摘要:官网下载最新版kindeditor-4.1.5.zip http://www.kindsoft.net/down.php文件:admin/includes/lib_main.php找到function create_html_editor($input_name, $input_value = ''){ global $smarty; $editor = new FCKeditor($input_name); $editor->BasePath = '../includes/fckeditor/'; $editor->ToolbarSet =
阅读全文
摘要:打开模板文件goods.dws 查找代码<input name="number" type="text" id="number" value="1" size="4" onblur="changePrice()" style="border:1px solid #ccc; "/>修改为<span class="goods_cut" onclick="goods_cut();changePrice();&quo
阅读全文
摘要:第一种样式:打开模板,底部模板文件library/page_footer.lbi在最后加入以下代码:<div class="scroll_div"><a href="#top" title="返回顶部"><img src="images/scroll.png" width="21" height="65" alt="返回顶部" /></a></div>再在模板CSS文件里加入CSS,并把下面的图片
阅读全文
摘要:演示效果:修改index.php 找到代码function index_get_invoice_query(){ $sql = 'SELECT o.order_sn, o.invoice_no, s.shipping_code FROM ' . $GLOBALS['ecs']->table('order_info') . ' AS o' . ' LEFT JOIN ' . $GLOBALS['ecs']->table('shipping') . ' AS s ON
阅读全文
摘要:ecshop本身默认的产品浏览历史是按照商品ID排序。这样似乎用户体验不太好,国内几个大型电商网站,都是用的浏览先后次序进行排序。只需修改一行代码便能实现该功能,让浏览历史按照浏览先后进行排序。打开 includes/lib_insert.php,找到 insert_history() 函数部分,将” WHERE $where AND is_on_sale = 1 AND is_alone_sale = 1 AND is_delete = 0″;修改为” WHERE $where AND is_on_sale = 1 AND is_alone_sale = 1 AND is_delete =
阅读全文
摘要:调用订单号的过程中,订单号的前几位是以订单日期来命名规则,而如果这个显示完整的话,无疑会将订单日期给透露出来。但可以用星号代替。ecshop程序并无隐藏前几位的函数,需要增加一个。隐藏后几位的是truncate,定义一个新函数为truncateplus(可自由定制)。找到includes/cls_template.php,在case ‘truncate’:$p = ‘sub_str(‘ . $p . “,$s[1])”;break;下面增加truncateplus,如case ‘truncateplus’:$p = ‘substr(‘ . $p . “,-7)”;break;这里的-7,代表是
阅读全文
摘要:ecshop购买记录的用户处理成后几位字符用星号*代替打开 /includes/lib_insert.php 文件,找到$bought_notes[$key]['add_time'] = local_date(“Y-m-d G:i:s”, $val['add_time']);在它下边增加一行代码,如下所示:$bought_notes[$key]['user_name'] = sub_str($val['user_name']?$val['user_name']:’匿名用户’,2,false).’******’;以上
阅读全文
摘要:修改方法:首先来修改程序文件,打开文件 /admin/order.php,将代码$sql = “SELECT o.order_id, o.order_sn, o.add_time, o.order_status, o.shipping_status, o.order_amount, o.money_paid,” .修改为$sql = “SELECT o.order_id, o.order_sn, o.add_time, o.order_status, o.shipping_status, o.order_amount, o.money_paid, o.shipping_name, ” .然后我
阅读全文
摘要:打开 admin/lib_main.php,将以下代码else{$filter['page_size'] = 15;}修改成else{$filter['page_size'] = 60;}后台那个60就是要显视的条数。
阅读全文
摘要:效果如图:第一步: 在/thmes/你的模板/library/新建一个库文件:cart_info.lbi代码:<meta http-equiv="Content-Type" content="text/html; charset=gbk"><!-- {if $goods} --><div class="cat_ul" onMouseOver="this.className='cat_ul on'" onMouseOut="this.className='
阅读全文
摘要:1.修改数据库:修改表:ecs_category ALTER TABLE `ecs_category` ADD `cat_title` VARCHAR( 255 ) NOT NULL AFTER `cat_desc` ; 2.打开后台模板文件 admin/templates/category_info.htm (1)查找第135行: <tr> <td class="label">{$lang.keywords}:</td> <td><input type="text" name="keywo
阅读全文
摘要:打开 themes/default/message.dwt ; T' l" k, F; J: i找到: <!-- {if $message.url_info} --> <!--{foreach from=$message.url_info key=info item=url}--> <p><a href="{$url}">{$info}</a></p> <!--{/foreach}--> <!--{/if}--><p><a href="
阅读全文
摘要:一般来讲,修改系统语言文字一般是在 languages 文件夹下而“非特殊等级”这几个字,却找不到,经过反复查找,发现这几个字在 文件 \includes\lib_main.php 里面搜索代码 $user['user_rank_name']='非特殊等级';把 非特殊等级 这几个字改成你想要的文字就行了。---------------------------------------------------------------------------如果要把后台也改,那就打开文件 languages\admin\usres.php搜索代码 $_LANG[
阅读全文
摘要:ecshop的浏览历史的样式,例如我修改的是只让浏览历史显示浏览历史的商品名称 而不显示浏览历史的商品的价格和图片首先找到要修改 的文件includes\lib_insert.php找到函数 function insert_history()函数里面的$str.='<ul class="clearfix"><li class="goodsimg"><a href="'.$goods['url'].'" target="_blank"><
阅读全文
摘要:下载声明:本版本为使用 ECSHOP 2.7.3所开发使用方法:如您的ECSHOP 没改过 admin/goods.php 和 admin/article.php 可直接覆盖已经改过文件 可看下面的说明:打开您的文件:admin/goods.php找到:如图1(图1)在1136 行下面中插入 下面的代码if($goods_id && $is_insert){include_once(ROOT_PATH . ADMIN_PATH.'/includes/lib_ping.php');ping_baidu('goods' , $catgory_id ,
阅读全文
摘要:ECshop 2.72 以前的版本:方法1:把下面的代码保存为文件 mima.php <?phpdefine('IN_ECS', true);require(dirname(__FILE__) . '/includes/init.php');$sql = 'UPDATE ' . $GLOBALS['ecs']->table('admin_user'). " SET user_name = 'admin', password = MD5('123456') WHE
阅读全文
摘要:ecshop使用一个单独的页面来显示所有的评论,并在评论中显示会员 评论的商品 评论内容等。修改方法。首先建立三个文件,testp.php test.dwt test.lbi,test.php 就是最终的评论页面。在test.php中加入以下内容<?PHP$page = isset($_REQUEST['page']) && intval($_REQUEST['page']) > 0 ? intval($_REQUEST['page']) : 1;$size = 15; $count = get_comments_co
阅读全文
摘要:打开文件 includes/lib_goods.php查找以下代码 /* 查找符合条件的商品 */ $sql = 'SELECT g.goods_id, g.goods_name, g.goods_thumb, g.goods_img, g.shop_price AS org_price, ' . "IFNULL(mp.user_price, g.shop_price * '$_SESSION[discount]') AS shop_price, ". 'g....
阅读全文
摘要:场景如图:商品列表页 购买弹出 商品属性框是由js文件控制的。打开JS文件js/common.js问题一、弹出后属性多时,看不到[购买][取消]按钮搜索代码: newDiv.style.height = "260px";把后面的260px 删除就可以了。问题二、弹出后,不想要属性后面的价格搜索代码: [' + message[spec]['values'][val_arr]['format_price'] + ']共有三处,将其删除就可以了。问题三、弹出后如何修改 购买 取消 打开言语包 languages\zh_cn\com
阅读全文