ECSHOP 首页促销商品调用 如何显示全部促销商品呢
展开全部
<DIV class="box_r miaosha" style="border-bottom:0" id=me_slider>
<!--{foreach from=$promotion_goods key=key item=goods name="promotion_foreach"}-->
<!--{if $smarty.foreach.promotion_foreach.iteration lt 2}-->
<H3 id="leftTime{$key}">{$lang.please_waiting}</H3>
<div class="item">
<div style="float:left; margin-top:10px; width:49%">
<p><a href="{$goods.url}" title="{$goods.name|escape:html}" class="name">{$goods.short_name|escape:html}</a></p>
<p class="price">
秒杀价:<span style="color:#D00; font-weight:bold;">{$goods.promote_price}</span>
</p>
<p class="price">
市场价:<span style="font-weight:bold;">{$goods.market_price}</span>
</p>
</div>
<div class="pic" style="float:left; width:49%"><a href="{$goods.url}"><img style="width:110px; height:110px; border:1px solid #F2F2F2" src="{$goods.thumb}" alt="{$goods.name|escape:html}" /></a></div>
</div>
<!--{/if}-->
<!--{/foreach}-->
</div>
代码参考如上,样式自行定义
<!--{foreach from=$promotion_goods key=key item=goods name="promotion_foreach"}-->
<!--{if $smarty.foreach.promotion_foreach.iteration lt 2}-->
<H3 id="leftTime{$key}">{$lang.please_waiting}</H3>
<div class="item">
<div style="float:left; margin-top:10px; width:49%">
<p><a href="{$goods.url}" title="{$goods.name|escape:html}" class="name">{$goods.short_name|escape:html}</a></p>
<p class="price">
秒杀价:<span style="color:#D00; font-weight:bold;">{$goods.promote_price}</span>
</p>
<p class="price">
市场价:<span style="font-weight:bold;">{$goods.market_price}</span>
</p>
</div>
<div class="pic" style="float:left; width:49%"><a href="{$goods.url}"><img style="width:110px; height:110px; border:1px solid #F2F2F2" src="{$goods.thumb}" alt="{$goods.name|escape:html}" /></a></div>
</div>
<!--{/if}-->
<!--{/foreach}-->
</div>
代码参考如上,样式自行定义
追问
不可以
你有显示全部的吧
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询