webstermobile
Fork me on GitHub
个人博客

ecshop 首页添加某个分类下面的商品

  1. 首先在后台,模版管理->设置模版里面,添加分类下的商品,包括区域,内容,显示;

  2. 在模版里面找到

 1 <!– TemplateBeginEditable name=”某分类区域” –>
 2 02    <!-- #BeginLibraryItem "/library/cat_goods.lbi" -->
 3 03     
 4 04    <div class="box">
 5 05     <div class="box_1">
 6 06      <h3><span><a href="{$goods_cat.url}" class="f6">{$goods_cat.name|escape:html}</a></span></h3>
 7 07        <div class="centerPadd">
 8 08        <div class="clearfix goodsBox" style="border:none;">
 9 09          <!--{foreach from=$cat_goods item=goods}-->
10 10          <div class="goodsItem">
11 11               <a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" class="goodsimg" /></a><br />
12 12               <p><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_name|escape:html}</a></p>
13 13               <!-- {if $goods.promote_price neq ""} -->
14 14              <font class="shop_s">{$goods.promote_price}</font>
15 15              <!-- {else}-->
16 16              <font class="shop_s">{$goods.shop_price}</font>
17 17              <!--{/if}-->
18 18            </div>
19 19          <!--{/foreach}-->
20 20          <div class="more"><a href="{$goods_cat.url}"><img src="images/more.gif" /></a></div>
21 21        </div>
22 22        </div>
23 23     </div>
24 24    </div>
25 25    <div class="blank5"></div>
26 26     
27 27     <!-- #EndLibraryItem --><!– TemplateEndEditable –>

这样,我们就可以从后台选择我们需要展示的商品

posted @ 2015-01-15 12:18  wpindesign  阅读(472)  评论(0编辑  收藏  举报