Modify

Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#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 Torsten Riemer, 9 years ago

Milestone: modified-shop-2.0.1.0modified-shop-2.0.1.1

comment:2 by Torsten Riemer, 9 years ago

Milestone: modified-shop-2.0.2.0modified-shop-2.0.2.1

comment:3 by Torsten Riemer, 9 years ago

Milestone: modified-shop-2.0.2.1modified-shop-2.1.0.0

comment:4 by Torsten Riemer, 9 years ago

Milestone: modified-shop-2.1.0.0modified-shop-2.0.3.0

comment:5 by Ronald Parcinski, 8 years ago

Resolution: fixed
Status: newclosed

In 10486:

fix #1053, #1056 - add total_netto, code substitution

comment:6 by Torsten Riemer, 8 years ago

Milestone: modified-shop-2.0.3.2modified-shop-2.0.2.0

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.