Ecshop后台订单列表鼠标放在订单号上面,自动显示所购买的订单商品列表,非常方便;如果订购商品多的话,版面不够显示,影响操作。
如何让商品列表更加美观,修改方法和效果截图如下:
打开admin/templates/order_goods_info.htm文件,将里面所有代码替换如下代码即可:
<table width="100%" cellpadding="3" cellspacing="1">
<tr>
<td scope="col" width="120px"><div align="center"><strong>{$lang.goods_name_brand}</strong></div></td>
<td scope="col" width="245px"><div align="center"><strong>{$lang.goods_name}</strong></div></td>
<td scope="col" width="65px"><div align="center"><strong>{$lang.goods_sn}</strong></div></td>
<td scope="col" width="65px"><div align="center"><strong>{$lang.goods_price}</strong></div></td>
<td scope="col" width="65px"><div align="center"><strong>{$lang.goods_number}</strong></div></td>
<td scope="col" width="65px"><div align="center"><strong>{$lang.goods_attr}</strong></div></td>
<td scope="col" width="65px"><div align="center"><strong>{$lang.storage}</strong></div></td>
<td scope="col" width="65px"><div align="center"><strong>{$lang.subtotal}</strong></div></td>
</tr>
{foreach from=$goods_list item=goods}
<tr>
{if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'}
<td align="center"><a href="../goods.php?id={$goods.goods_id}" target="_blank"><img src="{$goods.goods_thumb}" width="80" height="80"/></a></td>
<td align="center">{$goods.goods_name} {if $goods.brand_name}[ {$goods.brand_name} ]{/if}
{if $goods.is_gift}{if $goods.goods_price > 0}{$lang.remark_favourable}{else}{$lang.remark_gift}{/if}{/if}
{if $goods.parent_id > 0}{$lang.remark_fittings}{/if}</td>
{else}
<td align="center">{$goods.goods_name}{$lang.remark_package}</td>
{/if}
<td align="center">{$goods.goods_sn}</td>
<td><div align="center">{$goods.formated_goods_price}</div></td>
<td><div align="center">{$goods.goods_number}
</div></td>
<td align="center">{$goods.goods_attr|nl2br}</td>
<td><div align="center">{$goods.storage}</div></td>
<td><div align="center">{$goods.formated_subtotal}</div></td>
</tr>
{/foreach}
</table>