etehadie removed
This commit is contained in:
@@ -149,7 +149,7 @@ class SingleOrderController extends Controller
|
||||
} else {
|
||||
// Calculate total price and fee for non-product (gold) transaction
|
||||
$data['total_price_original'] = $data['amount'] * ($data['price_original'] ?? 0);
|
||||
$mainProductId = Cnt::where('key', 'main_product')->value('value');
|
||||
$mainProductId = app(\App\Services\ConfigService::class)->mainProductId();
|
||||
$productId = $data['abshode_id'] ?? $data['product_id'] ?? $mainProductId;
|
||||
$data['product'] = $productId ? Product::find($productId) : null;
|
||||
if (!$data['product']) {
|
||||
|
||||
Reference in New Issue
Block a user