﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
1056	Warenkorbwert total netto benötigt	Ronald Parcinski	somebody	"Wir benötigen einen Netto Warenkorbwert

Vorschlag nach


{{{
foreach ($this->tax_discount as $value) {
      $this->total += round($value, $xtPrice->get_decimal_places(''));
    }
}}}

das hier einfügen


{{{
$this->total_netto = $this->total;
    if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
      foreach ($this->tax as $key => $val) {
        $this->total_netto -= round($val['value'], $xtPrice->get_decimal_places(''));
      }
    }

}}}

Und bei Vergleichen mit $_SESSION['cart']->show_total() kann man das wenn nötig korrigieren:

{{{
$cart_total = $_SESSION['cart']->show_total();
$cart_total = $_SESSION['cart']->total_netto < $cart_total ? $_SESSION['cart']->total_netto : $cart_total;
}}}

Man benötigt das z.B. beim Coupon Mindestbestellwert

{{{

$cc_check = isset($_SESSION['cc_amount_min_order']) && $_SESSION['cc_amount_min_order'] <= $cart_total ? true : false;
}}}


"	Neues Feature	closed	normal	modified-shop-2.0.2.0	Shop	2.0.0.0	fixed				
