PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.7.1
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.7.1
1.7.1 1.7.0 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 All 51 releases
← All changes | app/Views/emails/subscription/canceled/customer.php +11 -4 1.3.21 → 1.7.1 View file →
@@ -8,8 +8,9 @@
8 8
9 9 $renewalAmount = $subscription->recurring_total ?? 0;
10 10 $billingInterval = $subscription->billing_interval ?? '';
11 11 $reactivateUrl = $subscription->getReactivateUrl();
12 +$accessUntilLabel = \FluentCart\App\Services\DateTime\DateFormatter::format($subscription->next_billing_date, false, $order);
12 13 ?>
13 14
14 15 <div class="space_bottom_30">
15 16 <p>
@@ -26,9 +27,9 @@
26 27 <?php
27 28 printf(
28 29 /* translators: %s is the subscription item name */
29 30 esc_html__( 'Your subscription for %s has been canceled.', 'fluent-cart' ),
30 - '<b>' . esc_html( $subscription->item_name ) . '</b>'
31 + '<b>' . esc_html( $subscription->display_item_name ) . '</b>'
31 32 );
32 33 ?>
33 34 </p>
34 35
@@ -35,9 +36,9 @@
35 36 <table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #e5e7eb;border-radius:8px;padding:14px 16px;margin:12px 0 0;">
36 37 <tbody>
37 38 <tr>
38 39 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Subscription', 'fluent-cart'); ?></td>
39 - <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>
40 + <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>
40 41 </tr>
41 42 <?php if ($renewalAmount): ?>
42 43 <tr>
43 44 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Amount', 'fluent-cart'); ?></td>
@@ -50,10 +51,16 @@
50 51 </tr>
51 52 <?php endif; ?>
52 53 <?php if (!empty($reason)): ?>
53 54 <tr>
54 - <td style="font-size:13px;color:#6b7280;padding:0;"><?php esc_html_e('Reason', 'fluent-cart'); ?></td>
55 - <td style="font-size:13px;color:#111827;font-weight:600;padding:0;text-align:right;"><?php echo esc_html($reason); ?></td>
55 + <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Reason', 'fluent-cart'); ?></td>
56 + <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($reason); ?></td>
57 + </tr>
58 + <?php endif; ?>
59 + <?php if ($accessUntilLabel): ?>
60 + <tr>
61 + <td style="font-size:13px;color:#6b7280;padding:0;"><?php esc_html_e('Access Until', 'fluent-cart'); ?></td>
62 + <td style="font-size:13px;color:#111827;font-weight:600;padding:0;text-align:right;"><?php echo esc_html($accessUntilLabel); ?></td>
56 63 </tr>
57 64 <?php endif; ?>
58 65 </tbody>
59 66 </table>