1.includes/lib_order.php,搜索/* 支付费用是一个比例 */,将
2.themes/模板名/library/order_total.lib中的
$pay_fee = $val > 0 ? $order_amount * $val /(1- $val) : 0;
替换为
$pay_fee = $order_amount * $val;
再搜索
$total['pay_fee_formated'] = price_format($total['pay_fee'], false);
替换为
if($total['pay_fee']<0){
$total['pay_fee_formated'] = "-".price_format((-1 * $total['pay_fee']), false);
}else{
$total['pay_fee_formated'] = price_format($total['pay_fee'], false);
}
2.themes/模板名/library/order_total.lib中的
<!-- {if $total.pay_fee > 0} 支付费用 -->
+ {$lang.pay_fee}: <font class="f4_b">{$total.pay_fee_formated}</font>
<!-- {/if} -->
替换为
<!-- {if $total.pay_fee neq 0} 支付费用 -->
+ {$lang.pay_fee}: <font class="f4_b">{$total.pay_fee_formated}</font>
<!-- {/if} -->
3.在后台设置折扣
OK,完成
转载自http://jingyan.baidu.com/article/a24b33cd52f8b919ff002b76.html