Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#1056 closed Neues Feature (fixed)

Warenkorbwert total netto benötigt

Reported by: web28 Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.2.0
Component: Shop Version: 2.0.0.0

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 Changed 5 years ago by Tomcraft

  • Milestone changed from modified-shop-2.0.1.0 to modified-shop-2.0.1.1

comment:2 Changed 5 years ago by Tomcraft

  • Milestone changed from modified-shop-2.0.2.0 to modified-shop-2.0.2.1

comment:3 Changed 5 years ago by Tomcraft

  • Milestone changed from modified-shop-2.0.2.1 to modified-shop-2.1.0.0

comment:4 Changed 5 years ago by Tomcraft

  • Milestone changed from modified-shop-2.1.0.0 to modified-shop-2.0.3.0

comment:5 Changed 4 years ago by web28

  • Resolution set to fixed
  • Status changed from new to closed

In 10486:

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

comment:6 Changed 4 years ago by Tomcraft

  • Milestone changed from modified-shop-2.0.3.2 to modified-shop-2.0.2.0

Add Comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.