怎么在首页调用订单查询?

2016-07-07 16:03 来源:www.chinab4c.com 作者:ecshop专家

怎么在首页调用订单查询?


例如: newscreen7313843.jpg newscreen7313843.jpg

回答:


加这段代码到index.dwt您所要放的位置。

<!-- #BeginLibraryItem "/library/order_query.lbi" -->
{if empty($order_query)}
<div class="order_query box">
<div class="hd"><h3>{$lang.order_query}</h3><div class="extra"></div></div>
<div class="bd" id="order_query">
<form action="" class="main">
<input type="text" name="order_sn" title="{$lang.invalid_order_sn}" class="input"/>
<input type="button" value="{$lang.query_order}" class="btn_s4"/>
</form>
</div>
</div>
{else}
{if $order_query.user_id}<p><em>{$lang.order_number}</em><span><a href="user.php?act=order_detail&order_id={$order_query.order_id}" >{$order_query.order_sn}</a></span></p>{else}<p><em>{$lang.order_number}</em><span>{$order_query.order_sn}</span></p>{/if}
<p><em>{$lang.order_status}</em><span>{$order_query.order_status}</span></p>
{if $order_query.invoice_no }<p><em>{$lang.c**ignment}</em><span>{$order_query.invoice_no}</span></p>{/if}
{if $order_query.shipping_date}<p><em>{$lang.shipping_date}</em><span>{$order_query.shipping_date}</span></p>{/if}
{/if}
<!-- #EndLibraryItem -->

作者QQ:718728638 www.ahzykj.net