最近在搞ecshop,ecshop用的是smarty。在首页中想要修改展示的商品数量,但是用的是foreach,让我无从下手,在网上找了好久终于找到解决方案。

<!--{foreach name=goods from=$new_goods item=goods}-->
      <!--{if $smarty.foreach.goods.iteration <7}-->
      {$smarty.foreach.goods.iteration}
    <!--{/if}-->
<!--{/foreach}-->    

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2022-03-04
  • 2022-12-23
  • 2021-08-05
  • 2021-10-09
  • 2021-06-15
猜你喜欢
  • 2022-01-20
  • 2022-03-09
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
相关资源
相似解决方案