������Դ��רע����ҵԴ�롢��ҵ�̡̳���ҵ�زġ���ҵģ�塢��Ʒ��������Ϊ���վ�������ṩ�����ʵķ���
�û���:
����:
ע��

��ҵԴ�����

VIP

CMS�̳�

վ��ѧԺ

ecshop�̳̣���ʾij��Ʒ�����ۼ�Ч����ʵ�ִ���

lucyptak.com / 2014-10-28
�������£� 
�޸� includes/lib_insert.php �ļ��� 
����һ������ 
 
���ƴ����������: 
/** 
* ����ij��Ʒ���ۻ��۳� 
*/ 
function insert_goods_sells($arr) 
$sql = 'SELECT SUM(goods_number) AS number ' . 
' FROM ' . $GLOBALS['ecs']->table('order_goods') ." AS og , " . $GLOBALS['ecs']->table('order_info') ." AS o ". 
" WHERE og.order_id = o.order_id and og.goods_id=".$arr['goods_id']; 
$row = $GLOBALS['db']->GetRow($sql); 
if ($row) 
$number = intval($row['number']); 
else 
$number = 0; 
return $number; 
 
�޸�ģ����goods.dwt�ļ� 
����һ�д��� 
<strong>�ۼ��۳���</strong>{insert name='goods_sells' goods_id=$id}{$goods.measure_unit}
����