Country Prices | Homeparty | Shop | Order
This commit is contained in:
parent
51d81d8ec6
commit
39d1e93416
284 changed files with 784 additions and 216 deletions
|
|
@ -2,14 +2,6 @@
|
|||
namespace App\Services;
|
||||
|
||||
use App\Models\HomepartyUser;
|
||||
use App\Models\Product;
|
||||
use App\Models\ShippingCountry;
|
||||
use \Gloudemans\Shoppingcart\Cart;
|
||||
use Gloudemans\Shoppingcart\CartItem;
|
||||
use Gloudemans\Shoppingcart\Contracts\Buyable;
|
||||
use Illuminate\Session\SessionManager;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
|
||||
class HomepartyUserCart
|
||||
|
|
@ -101,6 +93,11 @@ class HomepartyUserCart
|
|||
return formatNumber($this->ek_price);
|
||||
}
|
||||
|
||||
public function getFormattedEkPriceWithout()
|
||||
{
|
||||
return formatNumber($this->ek_price - $this->shipping_price);
|
||||
}
|
||||
|
||||
public function getFormattedIncomePrice()
|
||||
{
|
||||
return formatNumber($this->income_price);
|
||||
|
|
@ -145,7 +142,10 @@ class HomepartyUserCart
|
|||
break;
|
||||
case 'EkPrice':
|
||||
$rNumber = $this->ek_price * $faktor;
|
||||
break;
|
||||
break;
|
||||
case 'EkPriceWithout':
|
||||
$rNumber = ($this->ek_price - $this->shipping_price) * $faktor;
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue