added percent in product price 4

This commit is contained in:
2026-07-05 13:04:00 +03:30
parent 3373bc82ca
commit 694fddc909
4 changed files with 45 additions and 25 deletions
@@ -201,7 +201,10 @@ class CartController extends Controller
->load('items');
}
$wallet = Wallet::where('owner',auth('customer')->id())->whereNull('fund_id')->whereNull('product_id')
$wallet = Wallet::where('owner', auth('customer')->id())
->where('owner_type', auth('customer')->user()->type)
->whereNull('fund_id')
->whereNull('product_id')
->first();
if (!$wallet) {