Categories, Netto Homeparty

This commit is contained in:
Kevin Adametz 2021-06-18 15:02:34 +02:00
parent 7d1ee844eb
commit 351a8f763c
13 changed files with 144 additions and 64 deletions

View file

@ -30,6 +30,8 @@ class HomepartyUserCart
public $price;
public $price_net;
public $ek_price;
public $ek_price_net;
public $income_price;
public $weight;
@ -53,6 +55,8 @@ class HomepartyUserCart
$this->price = 0;
$this->price_net = 0;
$this->ek_price = 0;
$this->ek_price_net = 0;
$this->income_price = 0;
$this->weight = 0;
$this->shipping_weight = 0;
@ -70,6 +74,7 @@ class HomepartyUserCart
$this->price += $order_item->getTotalPrice();
$this->price_net += $order_item->geTotalPriceNet();
$this->ek_price += $order_item->geTotalEKPrice();
$this->ek_price_net += $order_item->geTotalEKPriceNet();
$this->income_price += $order_item->geTotalIncomePrice();
$this->weight += ($order_item->product->weight * $order_item->qty);
}