请教一下怎样实现首页不显示商品的市场价,会员价

2016-07-07 15:11 来源:www.chinab4c.com 作者:ecshop专家

RT,领导改主意了,
好容易找到方法把会员价不显示了,
但是市场价仍然无法做到不显示,
求解决方法

回答:
找了半天,总算在论坛里面找到了解决方法:

1.recommend_best.lbi

<div class="recommendContent entry-content"id="show_best_area" >
<!-- {/if} -->
<!--{foreach from=$best_goods item=goods}-->
<div class="goodsbox">
<div class="imgbox"><a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" /></a></div>
<a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_style_name}</a><br />
<font class="goodspice market">{$goods.market_price}</font>
<!-- {if $goods.promote_price neq ""} -->
<b class="f1">{$goods.promote_price}</b><br />
<!-- {else}-->
<b class="f1">{$goods.shop_price}</b><br />



2.library/recommend_hot.lbi

<!-- {/if} -->
<!--{foreach from=$hot_goods item=goods}-->
<div class="goodsbox" >
<div class="imgbox"><a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" /></a></div>
<a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_style_name}</a><br />
<font class="goodspice market">{$goods.market_price}</font>
<!-- {if $goods.promote_price neq ""} -->
<b class="f1">{$goods.promote_price}</b><br />
<!-- {else}-->
<b class="f1">{$goods.shop_price}</b><br />
<!--{/if}-->


3.library/recommend_new.lbi

<div class="recommendContent entry-content"id="show_new_area" >
<!-- {/if} -->
<!--{foreach from=$new_goods item=goods}-->
<div class="goodsbox">
<div class="imgbox"><a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" /></a></div>
<a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_style_name}</a><br />
<font class="goodspice market">{$goods.market_price}</font>
<!-- {if $goods.promote_price neq ""} -->
<b class="f1">{$goods.promote_price}</b><br />
<!-- {else}-->
<b class="f1">{$goods.shop_price}</b><br />
<!--{/if}-->

以上是系统内的三个库文件,分别删掉每个库文件中的"<font class="goodspice market">{$goods.market_price}</font>"
这段,即可在首页上不显示市场价.

补上:
首页的问题已经解决
1111.jpg
已经是这个效果了,
但是在下一个页面:
1.jpg

就又变回了这样子:
2222.jpg

其他的页面暂时还未发现问题,求后续解决方法