打开 category_tree.lbi
找到这些代码
<div class="modBox">
<dl id="category_tree">
<!--{foreach from=$categories item=cat } -->
<div class="toggleblock">
<dt class="clearfix">
<a href="{$cat.url}" class="f_l">{$cat.name|escape:html}</a></dt>
<!--{if $cat.cat_id}-->
<dd>
<!--{foreach from=$cat.cat_id item=child}-->
<a href="{$child.url}" title="{$child.name|escape:html}">{$child.name|escape:html}</a>
修改成如下,在相应的地方增加红色的部分就好了
<div class="modBox">
<dl id="category_tree">
<!--{foreach from=$categories item=cat name=cate_goods} -->
<div class="toggleblock">
<dt class="clearfix">
<img style="float:left" src="../images/cate_{$smarty.foreach.cate_goods.iteration}.gif" style=" padding-right:8px;">
<a href="{$cat.url}" class="f_l">{$cat.name|escape:html}</a></dt>
<!--{if $cat.cat_id}-->
<dd>
<!--{foreach from=$cat.cat_id item=child}-->
<a href="{$child.url}" title="{$child.name|escape:html}">{$child.name|escape:html}</a>
联系客服