Modify ↓
#1056 closed Neues Feature (fixed)
Warenkorbwert total netto benötigt
| Reported by: | Ronald Parcinski | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.2.0 |
| Component: | Shop | Version: | 2.0.0.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
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 $_SESSIONcart->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;
Attachments (0)
Change History (6)
comment:1 by , 9 years ago
| Milestone: | modified-shop-2.0.1.0 → modified-shop-2.0.1.1 |
|---|
comment:2 by , 9 years ago
| Milestone: | modified-shop-2.0.2.0 → modified-shop-2.0.2.1 |
|---|
comment:3 by , 9 years ago
| Milestone: | modified-shop-2.0.2.1 → modified-shop-2.1.0.0 |
|---|
comment:4 by , 9 years ago
| Milestone: | modified-shop-2.1.0.0 → modified-shop-2.0.3.0 |
|---|
comment:5 by , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:6 by , 8 years ago
| Milestone: | modified-shop-2.0.3.2 → modified-shop-2.0.2.0 |
|---|
Note:
See TracTickets
for help on using tickets.

In 10486: