[求助]如何取得会员组价格?

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



按如下修改可以显示本店价格。、促销价格的节省、折扣,问题是如果要显示会员组的价格节省和折扣,如何实现?如何取得rank_price价格计算?

修改includes\lib_goods.php 文件,在(即注释“/* 获得商品的销售价格 ”)后面添加:
$row['sheng_price'] = $row['market_price']-$row['shop_price'];
$row['zhekou_price'] = round(($row['shop_price']/$row['market_price'])*100)/10+"";
$row['cuxiao_sheng_price'] = $row['market_price']-$row['promote_price'];
$row['cuxiao_zhekou_price'] = round(($row['promote_price']/$row['market_price'])*100)/10+"";


到goods.dwt中找到市场价和促销价那一栏后面添加:折扣:{$goods.zhekou_price} 折节省:{$goods.sheng_price} 元
促销期间折扣:{$goods.cuxiao_zhekou_price} 折节省:{$goods.cuxiao_sheng_price} 元

回答:
请教如何修改?