| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | $reminder = (isset($reminder) && is_array($reminder)) ? $reminder : []; |
| 9 | 9 | $dueAt = \FluentCart\Framework\Support\Arr::get($reminder, 'due_at', ''); |
| 10 | -$dueDate = $dueAt ? \FluentCart\App\Services\DateTime\DateTime::gmtToTimezone($dueAt)->format('M d, Y h:i A') : ''; | |
| 10 | +$dueDate = \FluentCart\App\Services\DateTime\DateFormatter::format($dueAt, true, $order); | |
| 11 | 11 | $dueAmount = \FluentCart\Framework\Support\Arr::get($reminder, 'due_amount', 0); |
| 12 | 12 | if (!$dueAmount) { |
| 13 | 13 | $dueAmount = max(((int)$order->total_amount - (int)$order->total_paid), 0); |
| 14 | 14 | } |
| @@ -29,9 +29,9 @@ | ||
| 29 | 29 | <p> |
| 30 | 30 | <?php |
| 31 | 31 | printf( |
| 32 | 32 | /* translators: %s is the order reference */ |
| 33 | - esc_html__('This is a friendly reminder that payment for order %s is due.', 'fluent-cart'), | |
| 33 | + esc_html__('Today is the due date for invoice %s. Please complete your payment to keep your subscription active.', 'fluent-cart'), | |
| 34 | 34 | '<b>' . esc_html($orderRef) . '</b>' |
| 35 | 35 | ); |
| 36 | 36 | ?> |
| 37 | 37 | </p> |
| @@ -60,8 +60,8 @@ | ||
| 60 | 60 | </div> |
| 61 | 61 | |
| 62 | 62 | <?php |
| 63 | 63 | \FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [ |
| 64 | - 'content' => __('Please complete your payment to keep your order active.', 'fluent-cart'), | |
| 64 | + 'content' => __('Your subscription renewal is due today. Complete your payment to avoid any interruption.', 'fluent-cart'), | |
| 65 | 65 | 'link' => $paymentLink, |
| 66 | 66 | 'button_text' => __('Pay Now', 'fluent-cart'), |
| 67 | 67 | ]); |