refactor: ♻️ So stupid function calls...
This commit is contained in:
parent
6216892594
commit
dba8e2ebb8
1 changed files with 4 additions and 2 deletions
|
@ -54,10 +54,12 @@ class PaymentController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
$discount = PartnerDiscount::getDiscount();
|
||||
|
||||
return view('store.checkout')->with([
|
||||
'product' => $shopProduct,
|
||||
'discountpercent' => PartnerDiscount::getDiscount(),
|
||||
'discountvalue' => PartnerDiscount::getDiscount() * $shopProduct->price / 100,
|
||||
'discountpercent' => $discount,
|
||||
'discountvalue' => $discount * $shopProduct->price / 100,
|
||||
'discountedprice' => $shopProduct->getPriceAfterDiscount(),
|
||||
'taxvalue' => $shopProduct->getTaxValue(),
|
||||
'taxpercent' => $shopProduct->getTaxPercent(),
|
||||
|
|
Loading…
Add table
Reference in a new issue