← All changes
|
app/Views/emails/subscription/trial_end/customer.php
+3
-3
1.3.21
→
1.6.6
View file →
| @@ -9,9 +9,9 @@ | ||
| 9 | 9 | $reminder = (isset($reminder) && is_array($reminder)) ? $reminder : []; |
| 10 | 10 | $trialEndDate = \FluentCart\Framework\Support\Arr::get($reminder, 'trial_end_date', |
| 11 | 11 | !empty($subscription->trial_ends_at) ? $subscription->trial_ends_at : $subscription->next_billing_date |
| 12 | 12 | ); |
| 13 | -$trialEndLabel = $trialEndDate ? \FluentCart\App\Services\DateTime\DateTime::gmtToTimezone($trialEndDate)->format('M d, Y h:i A') : ''; | |
| 13 | +$trialEndLabel = \FluentCart\App\Services\DateTime\DateFormatter::format($trialEndDate, true, $order); | |
| 14 | 14 | $stage = \FluentCart\Framework\Support\Arr::get($reminder, 'stage', ''); |
| 15 | 15 | $daysBefore = preg_replace('/[^0-9]/', '', $stage); |
| 16 | 16 | $daysText = !empty($daysBefore) ? sprintf(__('%d days', 'fluent-cart'), $daysBefore) : ''; |
| 17 | 17 | $renewalAmount = $subscription->recurring_total ?? 0; |
| @@ -32,9 +32,9 @@ | ||
| 32 | 32 | <?php |
| 33 | 33 | printf( |
| 34 | 34 | /* translators: %s is subscription item name */ |
| 35 | 35 | esc_html__('Your trial for %s is ending soon.', 'fluent-cart'), |
| 36 | - '<b>' . esc_html($subscription->item_name) . '</b>' | |
| 36 | + '<b>' . esc_html($subscription->display_item_name) . '</b>' | |
| 37 | 37 | ); |
| 38 | 38 | ?> |
| 39 | 39 | </p> |
| 40 | 40 | <table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #e5e7eb;border-radius:8px;padding:14px 16px;margin:12px 0 0;"> |
| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | <table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #e5e7eb;border-radius:8px;padding:14px 16px;margin:12px 0 0;"> |
| 41 | 41 | <tbody> |
| 42 | 42 | <tr> |
| 43 | 43 | <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Subscription', 'fluent-cart'); ?></td> |
| 44 | - <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($subscription->item_name); ?></td> | |
| 44 | + <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($subscription->display_item_name); ?></td> | |
| 45 | 45 | </tr> |
| 46 | 46 | <?php if ($daysText): ?> |
| 47 | 47 | <tr> |
| 48 | 48 | <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Trial Ends In', 'fluent-cart'); ?></td> |