PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.5.3
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.5.3
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 1.3.20 1.3.19 All 49 releases
fluent-cart / app / Views / emails / subscription / canceled / customer.php

customer.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.5.3, at app/Views/emails/subscription/canceled/customer.php

86 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2 <?php
3 /**
4 * @var \FluentCart\App\Models\Subscription $subscription
5 * @var \FluentCart\App\Models\Order $order
6 * @var string $reason
7 */
8
9 $renewalAmount = $subscription->recurring_total ?? 0;
10 $billingInterval = $subscription->billing_interval ?? '';
11 $reactivateUrl = $subscription->getReactivateUrl();
12 $accessUntilLabel = !empty($subscription->next_billing_date)
13 ? \FluentCart\App\Services\DateTime\DateTime::gmtToTimezone($subscription->next_billing_date)->format('M d, Y')
14 : '';
15 ?>
16
17 <div class="space_bottom_30">
18 <p>
19 <?php
20 printf(
21 /* translators: %s is the customer name */
22 esc_html__( 'Hello %s,', 'fluent-cart' ),
23 esc_html($subscription->customer->full_name)
24 );
25 ?>
26 </p>
27
28 <p>
29 <?php
30 printf(
31 /* translators: %s is the subscription item name */
32 esc_html__( 'Your subscription for %s has been canceled.', 'fluent-cart' ),
33 '<b>' . esc_html( $subscription->display_item_name ) . '</b>'
34 );
35 ?>
36 </p>
37
38 <table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #e5e7eb;border-radius:8px;padding:14px 16px;margin:12px 0 0;">
39 <tbody>
40 <tr>
41 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Subscription', 'fluent-cart'); ?></td>
42 <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>
43 </tr>
44 <?php if ($renewalAmount): ?>
45 <tr>
46 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Amount', 'fluent-cart'); ?></td>
47 <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;">
48 <?php echo esc_html(\FluentCart\Api\CurrencySettings::getFormattedPrice($renewalAmount, null, false, true, true)); ?>
49 <?php if ($billingInterval): ?>
50 <span style="font-size:12px;font-weight:400;color:#6b7280;">(<?php echo esc_html($billingInterval); ?>)</span>
51 <?php endif; ?>
52 </td>
53 </tr>
54 <?php endif; ?>
55 <?php if (!empty($reason)): ?>
56 <tr>
57 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Reason', 'fluent-cart'); ?></td>
58 <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($reason); ?></td>
59 </tr>
60 <?php endif; ?>
61 <?php if ($accessUntilLabel): ?>
62 <tr>
63 <td style="font-size:13px;color:#6b7280;padding:0;"><?php esc_html_e('Access Until', 'fluent-cart'); ?></td>
64 <td style="font-size:13px;color:#111827;font-weight:600;padding:0;text-align:right;"><?php echo esc_html($accessUntilLabel); ?></td>
65 </tr>
66 <?php endif; ?>
67 </tbody>
68 </table>
69 </div>
70
71 <?php if ($reactivateUrl): ?>
72 <?php
73 \FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [
74 'content' => __('Changed your mind? You can reactivate your subscription at any time.', 'fluent-cart'),
75 'link' => $reactivateUrl,
76 'button_text' => __('Reactivate Subscription', 'fluent-cart'),
77 ]);
78 ?>
79 <?php endif; ?>
80
81 <p style="font-size:14px;color:#6b7280;text-align:center;">
82 <a href="<?php echo esc_url($subscription->getViewUrl('customer')); ?>" style="color:#017EF3;text-decoration:underline;">
83 <?php esc_html_e('Manage Subscription', 'fluent-cart'); ?>
84 </a>
85 </p>
86