打開模版文件夾裏面的goods.dwtsession
查找
{$lang.shop_price}<font class="price" id="ECS_SHOPPRICE">{$goods.shop_price_formated}</font><br />
修改爲
{$lang.shop_price}<font class="price" id="ECS_SHOPPRICE">{if $smarty.session.user_id >0 }{$goods.shop_price_formated}{else}登陸可見{/if}</font>orm
此處是一個原理,即將須要登錄才能顯示的價格增長一個判斷,若是判斷會員已經登錄就顯示,若是沒有登錄,就不顯示。io
打開recommend_best.lbi 精品推薦form
查找{$lang.shop_price}
{$lang.shop_price}<b class="f1">{$goods.shop_price}</b><br />
修改爲
{$lang.shop_price}<b class="f1">{if $smarty.session.user_id >0 }{$goods.shop_price}{else}登陸可見{/if}</b><br />
{$lang.shop_price}<font class="price" id="ECS_SHOPPRICE">{if $smarty.session.user_id >0 }{$goods.shop_price_formated}{else}登陸可見{/if}</font>class