自己套的模板,首页商品不显示,是不是模板没有套好呢!

2016-07-07 14:55 来源:www.chinab4c.com 作者:ecshop专家

  1. <div class="clear">
  2. <div class="F_title"></div>
  3. <div class="F_right">
  4. <p>
  5. <a href="category.php?id=3" >美白祛斑</a> | <a href="category.php?id=4" >丰胸美乳</a> | <a href="category.php?id=5" >延缓衰老</a> | <ahref="category.php?id=2" >减肥瘦身</a> | <ahref="category.php?id=16" >排毒养颜</a> | <a href="category.php?id=17" >经期调理</a> | <a href="category.php?id=18" >补气养血</a> | <a href="category.php?id=19" >更年期调理</a> | <a href="category.php?id=1" >更多>></a>
  6. </p>
  7. </div>
  8. <!-- TemplateBeginEditable name="女人" -->
  9. <!-- #BeginLibraryItem "/library/cat_goods.lbi" -->

  10. <div class="fx">
  11. <img src="images/nav_menu.gif" width="1024" height="3" alt="" />
  12. </div>
  13. <div class="wrapper">
  14. <ul class="F_list">
  15. <!--{foreach from=$cat_goods item=goods}-->
  16. <li>
  17. <p>
  18. <a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" /></a>
  19. </p>
  20. <p class="txt1 gray"><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_name|escape:html}</a></p>
  21. <p><span class="del">原价:{$goods.market_price}</span>
  22. <!-- {if $goods.promote_price neq ""} -->
  23. <span class="red"><strong>现价:{$goods.promote_price}</strong></span></p>
  24. <!-- {else}-->
  25. <span class="red"><strong>现价:{$goods.shop_price}</strong></span></p>
  26. <!--{/if}-->
  27. </li>
  28. <!--{/foreach}-->

  29. </ul>
  30. <div class="banner_right">
  31. <p class="banner">
  32. <a href=""><img src="images/287.jpg" width="240" height="170" alt=""/></a>
  33. <ul class='banner_list'>
  34. <!--{foreach name=childs from=$cat.cat_id item=child}-->
  35. <a href="{$child.url}" title="{$child.name|escape:html}">{$child.name|escape:html}</a> |
  36. <!--{/foreach}-->
  37. </ul>
  38. </p>
  39. </div></div></div>
复制代码

回答:
直接写好cat_goods.lbi然后后台设置起用