From e9d90418fcbee1ac60ada0711a0f857cb1ec445f Mon Sep 17 00:00:00 2001 From: Konstantinos Arvanitakis Date: Tue, 29 Sep 2026 01:03:35 +0300 Subject: [PATCH] Fix: Correcting subject on mail status update to display actuall status --- .../Notifications/OrderStatusUpdatedNotification.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Order/Notifications/OrderStatusUpdatedNotification.php b/src/Order/Notifications/OrderStatusUpdatedNotification.php index c89a2a4..044e7e4 100644 --- a/src/Order/Notifications/OrderStatusUpdatedNotification.php +++ b/src/Order/Notifications/OrderStatusUpdatedNotification.php @@ -76,13 +76,17 @@ class OrderStatusUpdatedNotification extends BaseNotification $order = $this->event->order; $reference = OrderReferenceDisplay::resolve($order); + $statusLabel = config("lunar.orders.statuses.{$order->status}.label", $order->status); return (new MailMessage) - ->subject(__('Your order :reference has been updated', ['reference' => $reference])) + ->subject(__('Your order :reference is now :status', [ + 'reference' => $reference, + 'status' => $statusLabel, + ])) ->view('core::order.notifications.status-updated', [ 'order' => $order, 'reference' => $reference, - 'statusLabel' => config("lunar.orders.statuses.{$order->status}.label", $order->status), + 'statusLabel' => $statusLabel, ]); } }