未分類

twe 滿額xxxx打折

include\modules\order_total\ot_total.php

function process() {
global $order, $currencies;
if ($_SESSION[‘customers_status’][‘customers_status_show_price_tax’] != 0) {
if($order->info[‘total’] >= 10000) { $order->info[‘total’] = $order->info[‘total’] * 0.95; } elseif
($order->info[‘total’] > 4999 and $order->info[‘total’] < 9999) { $order->info[‘total’] = $order->info[‘total’] * 0.98; }
$this->output[] = array(‘title’ => $this->title . ‘:’,
‘text’ => ‘‘ . twe_format_price($order->info[‘total’], $price_special=1, $calculate_currencies=false) . ‘‘,
‘value’ => twe_format_price($order->info[‘total’], $price_special=0, $calculate_currencies=false));
}