コード例 #1
0
         $shipping_tax = round($shipping_total - $shipping_total / (1 + $shipping_taxrate), 5);
     } else {
         $shipping_tax = round($shipping_total * $shipping_taxrate, 5);
     }
     $shipping_display = $GLOBALS['CURRENCY_DISPLAY']->getFullValue($shipping_total);
 } else {
     $shipping_total = 0;
     $shipping_display = "";
 }
 /* SHOW TAX */
 if (!empty($_REQUEST['ship_to_info_id']) || $auth["show_price_including_tax"] == 1) {
     $tax = true;
     if (($weight_total != 0 || TAX_VIRTUAL == '1') && $total > 0) {
         $order_taxable = $ps_checkout->calc_order_taxable($vars);
         $vars['payment_discount'] = $payment_discount;
         $tax_total = $ps_checkout->calc_order_tax($order_taxable, $vars);
     } else {
         $tax_total = 0;
     }
     if ($auth['show_price_including_tax']) {
         $tax_total *= $discount_factor;
     }
     $tax_total += $shipping_tax;
     $tax_total = round($tax_total, 5);
     $tax_display = $GLOBALS['CURRENCY_DISPLAY']->getFullValue($tax_total);
     $tax_display .= ps_checkout::show_tax_details($order_tax_details);
 }
 if (PAYMENT_DISCOUNT_BEFORE != '1') {
     if ($payment_discount != 0.0) {
         $payment_discount_after = true;
         if ($payment_discount > 0.0) {