手动修改编辑ecshop订单销售记录
2010-02-02 18:22 来源:www.chinab4c.com 作者:admin
1:alter table ecs_goods add column sales_count int(1) default 0;
2:admin/goods.php
elseif ($_REQUEST['act'] == 'edit_sales_count')
{
check_authz_json('goods_manage');
$goods_id = intval($_POST['id']);
$sort_order = intval($_POST['val']);
if ($exc->edit("sales_count = '$sort_order', last_update=" .gmtime(), $goods_id))
{
clear_cache_files();
make_json_result($sort_order);
}
}
3:admin/templates/goods_list.htm
<th>销售数量</th>
<td align="center"><span onclick="listTable.edit(this, 'edit_sales_count', {$goods.goods_id})">{$goods.sort_order}</span></td>
4:category.php的function category_get_goods($children, $brand, $min, $max, $ext, $size, $page, $sort, $order)
增以下g.sales_count
$arr[$row['goods_id']]['sales_count'] = $row['sales_count'];
5:goods_list.lbi
<div class="sales-volume">已销售:<em><!--{if $goods.sales_count}--> {$goods.sales_count} <!--{else}--> 0 <!--{/if}--></em>件</div>
最近更新
常用插件
- ecshop二次开发商品email推荐
ecshop二次开发商品email推荐功能 图片1 来源: 中国B4C电子商务上海汽车租...
- ecshop发货单查询插件
ecshop发货查询页面,这个是很有必要的。我们在对ecshop进行二次开发的...
- ecshop仿taobao购物车插件
插件介绍:本插件是模仿taobao购物车,他输入数字,就可以自动更新商...
- ecshop中nginx实现url的重写
上几章为了让ecshop很好的在nginx上运行。我们搭配了ecshop的nginx下的工作...
- ecshop后台商品列表显示会
使用和开发ecshop的人都知道,在ecshop中存在不同的等级价格问题,ecsh...



