订单在首页如何显示多个?

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

下面是的index.php里的一段发货单查询代码,我改成了显示
' ORDER BY shipping_time DESC LIMIT 30';
但是首页还是只是显示成3-4个,,不管怎么改都没有变化,,
想问下,还有那些地方是影响发货查询显示的“invoice_query.lbi”
求解决....
/**
* 调用发货单查询
*
* @accessprivate
* @returnarray
*/
function index_get_invoice_query()
{
$sql = 'SELECT o.order_sn, o.invoice_no, s.shipping_code FROM ' . $GLOBALS['ecs']->table('order_info') . ' AS o' .
' LEFT JOIN ' . $GLOBALS['ecs']->table('shipping') . ' AS s ON s.shipping_id = o.shipping_id' .
" WHERE invoice_no > '' AND shipping_status = " . SS_SHIPPED .
' ORDER BY shipping_time DESC LIMIT 30';
$all = $GLOBALS['db']->getAll($sql);

foreach ($all AS $key => $row)
{
$plugin = ROOT_PATH . 'includes/modules/shipping/' . $row['shipping_code'] . '.php';

if (file_exists($plugin))
{
include_once($plugin);

$shipping = new $row['shipping_code'];
$all[$key]['invoice_no'] = $shipping->query((string)$row['invoice_no']);
}
}

clearstatcache();

return $all;
}

回答:
你看下你模板中.是否控制了。.或者是否有这么多定单.