fix on weight
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Http\Controllers\Shop;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Repositories\Core\User\ShopCart;
|
||||
use App\Repositories\Shop\Baskets;
|
||||
use App\Repositories\Shop\DeliveryTypes;
|
||||
use App\Repositories\Shop\Offers;
|
||||
use App\Repositories\Shop\Orders;
|
||||
use App\Repositories\Users;
|
||||
@@ -62,6 +63,19 @@ class BasketController extends Controller
|
||||
return ShopCart::count();
|
||||
}
|
||||
|
||||
public function getBasketTotal($deliveryTypeId = false)
|
||||
{
|
||||
$data = [
|
||||
'basket' => ShopCart::getSummary(),
|
||||
];
|
||||
|
||||
$weight = Baskets::getWeight();
|
||||
|
||||
$data['basket']['shipping'] = DeliveryTypes::getPrice($deliveryTypeId, $weight);
|
||||
|
||||
return view('Shop.Baskets.partials.basketTotal', $data);
|
||||
}
|
||||
|
||||
public function getSummary()
|
||||
{
|
||||
$data = ShopCart::getSummary();
|
||||
|
||||
Reference in New Issue
Block a user