Fix on addresses
This commit is contained in:
@@ -16,7 +16,8 @@ class BasketController extends Controller
|
||||
{
|
||||
$offerId = $request->input('offer_id');
|
||||
$quantity = $request->input('quantity') ?? 1;
|
||||
$price = Offers::getPrice($offerId, $quantity)->price_taxed;
|
||||
$offer = Offers::getPrice($offerId, $quantity);
|
||||
$price = $offer ? $offer->price_taxed : 0;
|
||||
|
||||
return number_format($quantity * $price, 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user