Ecshop开发日志
6月1日到现在,公司让我负责B2C平台的开发,平台是基于ECSHOP开源软件而构建。比较坑爹的是自己没有接触过ecshop这个系统,基本上是自己边学边边做。
6月份的工作主要在后台,但是是5个人的团队。7月份是前端的构架,以及上线之前的布局,只剩下我一个人了!服务器用的是阿里云。暂时没有出现什么问题。具体服务器怎样需要等到后期的压力测试才能出结果。
希望公司能在后期给我配点人,要不太累了。
7月15日:
网站搬家和网站备份,首页框架的构架
7月16日:
1:图片代替颜色选择
http://bbs.ecshop.com/viewthread.php?tid=126804&highlight=%CD%BC%C6%AC%CC%E6%BB%BB%D1%D5%C9%AB
2:label选择失效:
http://www.cnblogs.com/chenxianbin89/archive/2012/11/25/2787258.html
3:flow.php无跳转刷新购物车
4:增加购物数量按钮
http://bbs.ecshop.com/thread-190719-1-1.html
5:个人中心页面布局:
全站调用购物车:http://www.haogongju.net/art/1811997
7月17日
1:首页幻灯片:
themes\default_sma\js\sflash.js
themes\default_sma\library\index_ad.lbi
2:增加商品页面显示商品的数量:
把category.php的49行的$size = isset($_CFG['page_size']) && intval($_CFG['page_size']) > 0 ? intval($_CFG['page_size']) : 10;改成$size =40 ;
3:搭配销售:
全站调用配件开发:$fittings_list = get_goods_fittings($parent_list);
$parent_list是一个数组,返回数组
4:根据会员的等级显示价格:session判断 get_final_price();
7月18日
1:搭配销售:bug修复,在商品详情页无显示无库存:数据传输出现错误function submit_div(goods_id, parentId)数组出现异常,已修复。
2:商品详情页,模板改变之后出现加入购物车无属性:判断属性数组是否为空:if(goods.spec.length < 2){
alert("请选择商品属性");
}
else{
Ajax.call('flow.php?step=add_to_cart', 'goods=' + goods.toJSONString(), addToCartResponse, 'POST', 'JSON');
}
3:商品类别特效开发:逻辑构思的重点在$category变量,变量由后台传输过来
4:后台操作优化:
首先修改admin/templates/category_list.htm文件在id="{$cat.level}_{$cat.cat_id}"后边增加 {if $cat.level gt 0}style="display:none;"{/if}然后将<img src="images/menu_minus.gif"修改为<img src="images/menu_plus.gif"
5:修复商品选择bug:对属性数组attr的长度进行判断,小于2不执行ajax。
6:加入购物车弹出层特效:common.js二次开发
7:返回首页特效:js函数增加特效的动感性
7月19日
1、 修复后台bug: get_attachment_by_id parame 0 Is Not Legaled
2、 商品分类页结构重构:
$smarty->assign('categories', get_categories_tree($cat_id)); // 分类树
$smarty->assign('helps', get_shop_help()); // 网店帮助
$smarty->assign('top_goods', get_top10()); // 销售排行
$smarty->assign('show_marketprice', $_CFG['show_marketprice']);
$smarty->assign('category', $cat_id);//类别id
$smarty->assign('brand_id', $brand);
$smarty->assign('price_max', $price_max);
$smarty->assign('price_min', $price_min);
$smarty->assign('filter_attr', $filter_attr_str);
$smarty->assign('feed_url', ($_CFG['rewrite'] == 1) ? "feed-c$cat_id.xml" : 'feed.php?cat=' . $cat_id); // RSS URL
7月20日
1、 分类页面广告版块的设定以及广告显示逻辑开发:
<!--{if $category eq 1}-->
<div style="width:770px; height:300px;"> <!-- #BeginLibraryItem "/library/index_ad1.lbi" --><!-- #EndLibraryItem --></div>
<!--{/if}-->
<!--{if $category eq 2}-->
<div style="width:770px; height:300px;"> <!-- #BeginLibraryItem "/library/index_ad2.lbi" --><!-- #EndLibraryItem --></div>
<!--{/if}-->
<!--{if $category gt 2}-->
<div style="width:770px; height:150px;">
<!--{if $historyId eq 1}-->女装广告<!--{/if}-->
<!--{if $historyId eq 2}-->男装广告<!--{/if}-->
</div>
<!--{/if}-->
2、个人中心展示逻辑和版块设计
7月20日在客服轮岗:
中间主要工作在前台,比如购物流程界面,注册登录界面,以及接口审核之类。很少涉及后台的开发。未做记录。
8月1日
1、修复点击标签出现虚线黑框的bug
a {
blr:expression(this.onFocus=this.blur());/*IE使用*/
outline-style:none;/*FF使用*/
}
label{
blr:expression(this.onFocus=this.blur());/*IE使用*/
outline-style:none;/*FF使用*/
}