晓天你进来下哦~急的问题

2016-07-07 15:33 来源:www.chinab4c.com 作者:ecshop专家

http://bbs.ecshop.com/viewthread.php?tid=109507&highlight=%CF%FA%CA%DB%C5%C5%D0%D0

你看下这个贴,我捧到的问题和那个人一样

lib_goods.php 158
原来的
  • "AND o.order_status = '" . OS_CONFIRMED . "' " .

复制代码
改为
  • tus = '" . OS_CONFIRMED . "' OR o.order_status >= '" . OS_SPLITED . "') " .

复制代码


你说的这个办法,但是我找不到l
ib_goods.php

请问在哪里?我确认了两个订单了
前台销售排行还是显示不了

回答:
我原先是7.0的没有出现这个问题

include文件夹中,你可以找下

晓天,还是不行哦~
出现类似那个人的:Parse error: syntax error, unexpected '=' in D:\wwwww\shop\includes\lib_goods.php on line 157是不行哪行写错了???

提示语法错误,检查你修改过的部分。还有贴下你修改前的和修改后的看下

//判断是否启用库存,库存数量是否大于0
if ($GLOBALS['_CFG']['use_storage'] == 1)
{
$sql .= " AND g.goods_number > 0 ";
}
$sql .= ' AND og.order_id = o.order_id AND og.goods_id = g.goods_id ' .

"AND o.order_status = '" . OS_CONFIRMED . "' " .
"AND (o.pay_status = '" . PS_PAYED . "' OR o.pay_status = '" . PS_PAYING . "') " .
"AND (o.shipping_status = '" . SS_SHIPPED . "' OR o.shipping_status = '" . SS_RECEIVED . "') " .
'GROUP BY g.goods_id ORDER BY goods_number DESC, g.goods_id DESC LIMIT ' .

这个是之前的

贴了之后变成这个样子。就是按你那个办法修改的

//判断是否启用库存,库存数量是否大于0
if ($GLOBALS['_CFG']['use_storage'] == 1)
{
$sql .= " AND g.goods_number > 0 ";
}
$sql .= ' AND og.order_id = o.order_id AND og.goods_id = g.goods_id ' .

tus = '" . OS_CONFIRMED . "' OR o.order_status >= '" . OS_SPLITED . "') " .
"AND (o.pay_status = '" . PS_PAYED . "' OR o.pay_status = '" . PS_PAYING . "') " .
"AND (o.shipping_status = '" . SS_SHIPPED . "' OR o.shipping_status = '" . SS_RECEIVED . "') " .
'GROUP BY g.goods_id ORDER BY goods_number DESC, g.goods_id DESC LIMIT ' . $GLOBALS['_CFG']['top_number'];
$arr = $GLOBALS['db']->getAll($sql);

for ($i = 0, $count = count($arr); $i < $count; $i++)
{

改了之后整个登陆不进去了
页面只出现下面这行数字


Parse error: syntax error, unexpected '=' in D:\clientweb\zhao389406\wwwroot\includes\lib_goods.php on line 158

库存。.....你看看是否有

  1. $sql .= ' AND og.order_id = o.order_id AND og.goods_id = g.goods_id ' .
  2. "AND (o.order_status = '" . OS_CONFIRMED . "' OR o.order_status >= '" . OS_SPLITED . "') " .
  3. "AND (o.pay_status = '" . PS_PAYED . "' OR o.pay_status = '" . PS_PAYING . "') " .
  4. "AND (o.shipping_status = '" . SS_SHIPPED . "' OR o.shipping_status = '" . SS_RECEIVED . "') " .
  5. 'GROUP BY g.goods_id ORDER BY goods_number DESC, g.goods_id DESC LIMIT ' . $GLOBALS['_CFG']['top_number'];
复制代码

少复制一部分~~,不好意思。
现在已经在原帖中更正了,不能再误人子弟了。

呵呵 官方的回答很满意!!谢谢晓天!!顶!!很及时!!!