Fix: Correcting subject on mail status update to display actuall status
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user