手动修改编辑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订单聚合插件
ecshop订单聚合插件,主要是为了方便ecshop中订单产品到货情况的分析和...
- ecshop购买流程中增加增值
ecshop购买流程中增加增值发票功能插件,主要是增加ecshop发票功能中的...
- ecshop商品列表中品牌批量
ecshop商品列表中品牌批量转移插件.这个插件听起来非常希奇。但是我们...
- ecshop自动内链插件
ecshop自动内链插件,这个东西说白了很简单,就是为了让你的站,自动...
- ecshop分类/频道下flash
ecshop分类/频道下flash,这个的功能是非常有用的。ecshop首页flash这个功能...



