PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
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 trunk All 48 releases
fluent-cart / app / Views / emails / parts / order_header.php

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

52 lines 2.8 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
3 use FluentCart\App\Modules\Tax\TaxModule;?>
4
5 <?php if(!empty($order)): ?>
6 <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"
7 style="margin-left:auto;margin-right:auto;max-width:620px;margin-bottom:20px;border: none;">
8 <tbody>
9 <tr style="width:100%">
10 <td>
11 <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation" style="border: none;">
12 <tbody style="width:100%">
13 <tr style="width:100%">
14 <td style="width:60%">
15 <h1 style="font-size:24px;font-weight:700;color:rgb(17,24,39);margin:0px">
16 {{ settings.store_brand }}
17 </h1>
18 </td>
19 <td style="vertical-align: middle; width: 15%; text-align: right; border: 0;padding-right: 10px;">
20 <p style="white-space: nowrap; color: #94a3b8; text-align: right; margin: 0;font-size:12px;"><?php echo esc_html__('Order Date', 'fluent-cart'); ?></p>
21 <p style="white-space: nowrap; font-weight: bold; color: #000; text-align: right; margin: 0;font-size:15px;">{{order.created_at}}</p>
22 </td>
23 <td style="width:15%;text-align:right">
24 <p style="white-space: nowrap; color: #94a3b8; text-align: right; margin: 0;font-size:12px;">
25 <?php echo esc_html__('Order #', 'fluent-cart'); ?>
26 </p>
27 <p style="white-space: nowrap; font-weight: bold; color: #000; text-align: right; margin: 0;font-size:14px;">
28 <?php echo esc_html($order->invoice_no); ?>
29 </p>
30 </td>
31 </tr>
32 </tbody>
33 </table>
34 <?php
35 $orderTaxRates = $order->orderTaxRates->first();
36 if ($orderTaxRates): ?>
37 <div class="fct_invoice_tax_content" style="text-align: right;">
38 <?php
39 $storeVatNumber = isset($orderTaxRates->meta['store_vat_number']) ? $orderTaxRates->meta['store_vat_number'] : '';
40 $taxcountry = isset($orderTaxRates->meta['tax_country']) ? $orderTaxRates->meta['tax_country'] : '';
41 if ($storeVatNumber !== '') {
42 echo '<p style="font-weight: 600; font-size: 14px;margin-bottom:12px;">' . esc_html(TaxModule::getCountryTaxTitle($taxcountry)) . ': ' . esc_html($storeVatNumber) . '</p>';
43 }
44 ?>
45 </div>
46 <?php endif; ?>
47 </td>
48 </tr>
49 </tbody>
50 </table>
51 <?php endif; ?>
52