last changes since 6-2023
This commit is contained in:
parent
0341c9c189
commit
04d677d37a
142 changed files with 7895 additions and 2855 deletions
|
|
@ -24,6 +24,8 @@ class HomepartyUserCart
|
|||
public $ek_price;
|
||||
public $ek_price_net;
|
||||
|
||||
public $real_price;
|
||||
|
||||
public $income_price;
|
||||
|
||||
public $weight;
|
||||
|
|
@ -49,6 +51,8 @@ class HomepartyUserCart
|
|||
$this->ek_price = 0;
|
||||
$this->ek_price_net = 0;
|
||||
|
||||
$this->real_price = 0;
|
||||
|
||||
$this->income_price = 0;
|
||||
$this->weight = 0;
|
||||
$this->shipping_weight = 0;
|
||||
|
|
@ -64,6 +68,7 @@ class HomepartyUserCart
|
|||
foreach ($this->homepartyUser->homeparty_user_order_items as $order_item) {
|
||||
$this->points += $order_item->getTotalPoints();
|
||||
$this->price += $order_item->getTotalPrice();
|
||||
$this->real_price += $order_item->getTotalPrice();
|
||||
$this->price_net += $order_item->geTotalPriceNet();
|
||||
$this->ek_price += $order_item->geTotalEKPrice();
|
||||
$this->ek_price_net += $order_item->geTotalEKPriceNet();
|
||||
|
|
@ -72,7 +77,9 @@ class HomepartyUserCart
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public function isPrice(){
|
||||
return ($this->real_price) > 0 ? true : false;
|
||||
}
|
||||
public function getFormattedPoints()
|
||||
{
|
||||
return formatNumber($this->points, 0);
|
||||
|
|
@ -83,6 +90,11 @@ class HomepartyUserCart
|
|||
return formatNumber($this->price);
|
||||
}
|
||||
|
||||
public function getFormattedPriceWithout()
|
||||
{
|
||||
return formatNumber($this->price - $this->shipping_price);
|
||||
}
|
||||
|
||||
public function getFormattedPriceNet()
|
||||
{
|
||||
return formatNumber($this->price_net);
|
||||
|
|
@ -140,6 +152,9 @@ class HomepartyUserCart
|
|||
case 'Price':
|
||||
$rNumber = $this->price * $faktor;
|
||||
break;
|
||||
case 'PriceWithout':
|
||||
$rNumber = ($this->price - $this->shipping_price) * $faktor;
|
||||
break;
|
||||
case 'EkPrice':
|
||||
$rNumber = $this->ek_price * $faktor;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue