Ecshop后台订单列表 鼠标放在订单号上面,自动显示商品列表,非常方便;如果订购商品多的话,版面不够显示,影响操作。
分享一下,如何让商品列表更加美观。
(修改请注意:请勿用记事本编辑程序文件)
直接修改admin/templates/order_goods_info.htm文件即可,直接修改成:
<table width="100%" cellpadding="3" cellspacing="1"> <tr> <td scope="col"><div align="center"><strong>{$lang.goods_name_brand}</strong></div></td> <td scope="col"><div align="center"><strong>{$lang.goods_name}</strong></div></td> <td scope="col"><div align="center"><strong>{$lang.goods_sn}</strong></div></td> <td scope="col"><div align="center"><strong>{$lang.goods_price}</strong></div></td> <td scope="col"><div align="center"><strong>{$lang.goods_number}</strong></div></td> <td scope="col"><div align="center"><strong>{$lang.goods_attr}</strong></div></td> <td scope="col"><div align="center"><strong>{$lang.storage}</strong></div></td> <td scope="col"><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="50" height="50"/></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>
效果图: 下载,按编码覆盖,覆盖前请做好备份。
PS.覆盖前请做好备份。