编程笔记
1.修改data/config.php $admin_dir = admin; 修改成 $admin_dir = 新目录名; 分行 2.修改admin/index.php //货号 require_once(ROOT_PATH . admin/includes/lib_goods.php); 修改成 require_once(ROOT_PATH . $admin_dir./includes/lib_goods.php); 分行 3.
在库目录里增加一个文件:index_comments.lbi 里面有内容如下: ?php if(!function_exists(get_comments)){ function get_comments($num) { $sql = SELECT * FROM . $GLOBALS[ecs]-table(comment) . WHERE status = 1 AND parent_id = 0 and comment_type=0 .
dwt文件中加入下面代码: link media=screen href={$ecs_css_path} rel=stylesheet type=text/css title={$ecs_css_path} / link media=screen href=/themes/kf518/style.css rel=alternate stylesheet type=text/css title=style / link media=screen href=
ecshop中的几种价格: ecs_goods这个表是用来控制产品信息的表,里面有market_price,shop_price,promote_price和会员等级价格 market_price 表示市场价格 shop_price 表示本店价格 promote_price 表示产品促销价格 市场价格可以在后台设置,后台-系统设置-商
经常有用户反映ecshop的客户无法登录或无法把商品加入购物车,如果您用的代理上的网,可能你的ip经常变动,而ECSHOP的SESSION机制是根据IP来的,所以导致session发生了变化需要重新登录或无法加入购物车,购物车的商品等情况,这种情况可以,这校解决: 修改
打开 admin/templates/start.htm !-- directory install start -- ul id=lilist style=padding:0; margin: 0; list-style-type:none; color: #CC0000; {foreach from=$warning_arr item=warning} li style=border: 1px solid #CC0000; background: #FFFFCC;
ecshop销售排行榜添加上已经销售出商品件数,有朋友可能需要将ecshop默认模板中的销售排行榜(即top10)显示出已经出售的商品件数,如何解决? 这里给出了一个简单的修改方法: 1.找到根目录下面的includes/lib_goods.php文件,打开找到 function get_top10($cat
热卖商品模板 p class=imga href={$goods.url}img src={$goods.thumb} alt={$goods.name|escape:html}//a/p p class=namea href={$goods.url} title={$goods.name|escape:html}{$goods.short_style_name}/a br / a href=javascript:addToCart({$goods.id}) t
大家都知道ecshop的价格一般都是阿拉伯数字,但是在实际运营过程中某些商品是不方便直接显示出价格的,比如一些定制的服务或者昂贵的物品需要按客户实际需求出发定价。 那么就需要这些特定的商品显示出面议 ecshop好处就是开源因此这个方法很容易就被魔客吧
打开 goods.dwt 文件 查找: !-- #BeginLibraryItem /library/goods_tags.lbi --!-- #EndLibraryItem -- /blockquote !-- {if $package_goods_list} -- blockquote !-- {foreach from=$package_goods_list item=package_goods} -- strong{$package_goods.act
iis服务器广告列表乱码 是将导入的数据库文件里的utf8手动改成gbk 2.是php.ini 这个配置文件,output_buffering将其值改成on
(1)找到 网店根目录/includes/lib_article.php文件,并在最尾处增加以下代码(大概在行83处): function GetImageSrc($body) { if( !isset($body) ) { return ; } else { preg_match_all (/(img|IMG)(.*)(src|SRC)=[||]{0,}([h|/].*(jpg|JPG|gif|GIF|png|