PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.5.2
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.5.2
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 / parts / subscription_item.php

subscription_item.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.5.2, at app/Views/emails/parts/subscription_item.php

162 lines 8.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 if (isset($heading)): ?>
3 <p style="font-size:16px;font-weight:500;color:rgb(44,62,80);margin:0px;margin-bottom:16px;line-height:24px;margin-top:0px;margin-left:0px;margin-right:0px">
4 <?php echo esc_html($heading); ?>
5 </p>
6 <?php endif; ?>
7
8 <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"
9 style="border-width:1px;border-color:rgb(229,231,235);border-radius:8px;overflow:hidden;margin-bottom:16px;">
10 <tbody>
11 <tr>
12 <td>
13 <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"
14 style="background-color:rgb(249,250,251);padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:0px;border-bottom-width:1px;border-color:rgb(229,231,235)">
15 <tbody style="width:100%">
16 <tr style="width:100%">
17 <td style="width:80%">
18 <p style="font-size:12px;font-weight:600;color:rgb(55,65,81);text-transform:uppercase;margin:0px;line-height:24px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
19 <?php esc_html_e('Subscription', 'fluent-cart'); ?>
20 </p>
21 </td>
22 <td data-id="__react-email-column" style="width:20%;text-align:right">
23 <p style="font-size:12px;font-weight:600;color:rgb(55,65,81);text-transform:uppercase;margin:0px;line-height:24px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
24 <?php esc_html_e('Price', 'fluent-cart'); ?>
25 </p>
26 </td>
27 </tr>
28 </tbody>
29 </table>
30 <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"
31 style="padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:0px;border-bottom-width:1px;border-color:rgb(243,244,246)">
32 <tbody style="width:100%">
33 <tr style="width:100%">
34 <td style="width:80%">
35 <p style="font-size:14px;font-weight:600;color:rgb(17,24,39);margin-bottom:2px;line-height:24px;margin-top:16px">
36 <?php echo esc_html($subscription->display_item_name); ?>
37 </p>
38 </td>
39 <td style="width:20%;text-align:right">
40 <p style="font-size:14px;color:rgb(17,24,39);margin:0px;line-height:24px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
41 <?php echo esc_html(\FluentCart\App\Helpers\Helper::toDecimal($transaction->total)); ?>
42 (<?php echo esc_html($subscription->billing_interval); ?>)
43 </p>
44 </td>
45 </tr>
46 </tbody>
47 </table>
48 </td>
49 </tr>
50 </tbody>
51 </table>
52 <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"
53 style="background-color:rgb(249,250,251);padding:16px;border-radius:8px;margin-bottom:24px;border-width:1px;border-color:rgb(229,231,235)">
54 <tbody>
55 <tr>
56 <td>
57 <?php
58 $isReverseCharge = $order && $order->isReverseChargeTaxOrder();
59 if ($order && ($order->tax_total > 0 || $isReverseCharge)):
60 ?>
61 <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
62 <tbody style="width:100%">
63 <tr style="width:100%">
64 <td style="width:70%">
65 <p style="font-size:14px;color:rgb(55,65,81);margin:0px;line-height:24px;">
66 <?php esc_html_e('Subtotal', 'fluent-cart'); ?>
67 </p>
68 </td>
69 <td style="width:30%;text-align:right">
70 <p style="font-size:14px;color:rgb(55,65,81);margin:0px;line-height:24px;">
71 <?php echo esc_html(\FluentCart\App\Helpers\Helper::toDecimal($order->subtotal)); ?>
72 </p>
73 </td>
74 </tr>
75 <?php if ($isReverseCharge): ?>
76 <?php
77 $rcReversedTotal = $order ? $order->getReversedTaxTotal() : 0;
78 if ($rcReversedTotal > 0) {
79 $rcTaxLabel = sprintf(
80 /* translators: %1$s: formatted reversed tax amount */
81 __('Tax reversed: %1$s', 'fluent-cart'),
82 \FluentCart\App\Helpers\Helper::toDecimal($rcReversedTotal)
83 );
84 } else {
85 $rcTaxLabel = __('Charge reversed', 'fluent-cart');
86 }
87 ?>
88 <tr style="width:100%">
89 <td style="width:70%">
90 <p style="font-size:14px;color:rgb(55,65,81);margin:0px;line-height:24px;">
91 <?php esc_html_e('Tax', 'fluent-cart'); ?>
92 </p>
93 </td>
94 <td style="width:30%;text-align:right">
95 <p style="font-size:14px;color:rgb(55,65,81);margin:0px;line-height:24px;">
96 <?php echo esc_html($rcTaxLabel); ?>
97 </p>
98 </td>
99 </tr>
100 <?php else: ?>
101 <tr style="width:100%">
102 <td style="width:70%">
103 <p style="font-size:14px;color:rgb(55,65,81);margin:0px;line-height:24px;">
104 <?php esc_html_e('Tax', 'fluent-cart');
105 echo esc_html(\FluentCart\App\Helpers\Helper::getOrderTaxLabel($order));
106 ?>
107 </p>
108 </td>
109 <td style="width:30%;text-align:right">
110 <p style="font-size:14px;color:rgb(55,65,81);margin:0px;line-height:24px;">
111 <?php echo esc_html(\FluentCart\App\Helpers\Helper::toDecimal($order->tax_total)); ?>
112 </p>
113 </td>
114 </tr>
115 <?php endif; ?>
116 </tbody>
117 </table>
118 <?php if ($isReverseCharge): ?>
119 <div style="font-size:12px;color:rgb(55,65,81);margin-top:4px;margin-bottom:4px;">
120 <?php echo '* ' . esc_html__('Tax to be paid on reverse charge basis', 'fluent-cart'); ?>
121 </div>
122 <?php endif; ?>
123 <hr style="border-color:rgb(209,213,219);margin-top:8px;margin-bottom:8px;width:100%;border:none;border-top:1px solid #eaeaea">
124 <?php endif; ?>
125 <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
126 <tbody style="width:100%">
127 <tr style="width:100%">
128 <td style="width:70%"><p
129 style="font-size:16px;font-weight:700;color:rgb(17,24,39);margin:0px;line-height:24px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
130 <?php esc_html_e('Total', 'fluent-cart'); ?>
131 </p>
132 </td>
133 <td style="width:30%;text-align:right">
134 <p style="font-size:16px;font-weight:700;color:rgb(17,24,39);margin:0px;line-height:24px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
135 <?php echo esc_html(\FluentCart\App\Helpers\Helper::toDecimal($transaction->total)); ?>
136 </p>
137 </td>
138 </tr>
139 </tbody>
140 </table>
141 <hr style="border-color:rgb(209,213,219);margin-top:8px;margin-bottom:8px;width:100%;border:none;border-top:1px solid #eaeaea">
142 <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
143 <tbody style="width:100%">
144 <tr style="width:100%">
145 <td style="width:70%">
146 <p>
147 <?php esc_html_e('Payment Method', 'fluent-cart'); ?>
148 </p>
149 </td>
150 <td style="width:30%;text-align:right">
151 <p>
152 <?php echo esc_html($transaction->getPaymentMethodText()); ?>
153 </p>
154 </td>
155 </tr>
156 </tbody>
157 </table>
158 </td>
159 </tr>
160 </tbody>
161 </table>
162