diff --git a/03_WordPress/wp-content/plugins/ifnex-bridge/assets/js/ifnex-order-form.js b/03_WordPress/wp-content/plugins/ifnex-bridge/assets/js/ifnex-order-form.js index 1154b2e..8492086 100644 --- a/03_WordPress/wp-content/plugins/ifnex-bridge/assets/js/ifnex-order-form.js +++ b/03_WordPress/wp-content/plugins/ifnex-bridge/assets/js/ifnex-order-form.js @@ -760,9 +760,9 @@ jQuery(document).ready(function($) { btn.prop('disabled', false).text('✅ تأیید و ثبت سفارش'); if (res.success) { var orderId = res.data.data.id || res.data.id; - // با فلوی جدید، کاربر به صفحه جزئیات سفارش هدایت می‌شود + // با فلوی جدید، کاربر به لیست سفارشات هدایت می‌شود // (چون پرداخت فقط بعد از تأیید کارمند امکان‌پذیر است) - window.location.href = ifnex_ajax.orders_url + '?tab=orders'; + window.location.href = ifnex_ajax.orders_url; } else { $('#ifnex-submit-error').text(res.data || 'خطا در ثبت سفارش').show(); } diff --git a/04_Laravel/app/Http/Controllers/Api/PaymentController.php b/04_Laravel/app/Http/Controllers/Api/PaymentController.php index f37b686..cf20280 100644 --- a/04_Laravel/app/Http/Controllers/Api/PaymentController.php +++ b/04_Laravel/app/Http/Controllers/Api/PaymentController.php @@ -7,6 +7,7 @@ use App\Enums\TransactionStatus; use App\Http\Controllers\Controller; use App\Models\Wallet; use App\Models\WalletTransaction; +use App\Models\SystemSetting; use App\Services\WalletService; use App\Services\ZarinpalService; use App\Services\MockZarinpalService; diff --git a/04_Laravel/app/Observers/ShipmentObserver.php b/04_Laravel/app/Observers/ShipmentObserver.php index c8a2f62..4763d28 100644 --- a/04_Laravel/app/Observers/ShipmentObserver.php +++ b/04_Laravel/app/Observers/ShipmentObserver.php @@ -3,6 +3,7 @@ namespace App\Observers; use App\Models\Shipment; +use App\Models\SystemSetting; use App\Notifications\ShipmentUpdatedNotification; use App\Notifications\ShipmentApprovedSms; use App\Notifications\ShipmentRejectedSms; diff --git a/04_Laravel/app/Services/TrackingService.php b/04_Laravel/app/Services/TrackingService.php index 2e94c00..47b7395 100644 --- a/04_Laravel/app/Services/TrackingService.php +++ b/04_Laravel/app/Services/TrackingService.php @@ -4,6 +4,7 @@ namespace App\Services; use App\Models\Shipment; use App\Models\ShipmentTrackingEvent; +use App\Models\SystemSetting; class TrackingService {