Categories, Netto Homeparty
This commit is contained in:
parent
7d1ee844eb
commit
351a8f763c
13 changed files with 144 additions and 64 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue