| 1 |
<?php if (!defined('ABSPATH')) exit; ?> |
| 2 |
<?php |
| 3 |
/** |
| 4 |
* @var $order \FluentCart\App\Models\Order |
| 5 |
*/ |
| 6 |
?> |
| 7 |
|
| 8 |
<div class="space_bottom_30"> |
| 9 |
<p><?php |
| 10 |
printf( |
| 11 |
/* translators: %s is the customer's full name */ |
| 12 |
esc_html__('Hello %s,', 'fluent-cart'), |
| 13 |
esc_html($order->customer->full_name) |
| 14 |
); |
| 15 |
?></p> |
| 16 |
<p><?php esc_html_e('Thank you for purchase! Your order has been successfully placed and confirmed. Here is the details of your order.', 'fluent-cart'); ?></p> |
| 17 |
</div> |
| 18 |
|
| 19 |
<?php |
| 20 |
|
| 21 |
\FluentCart\App\App::make('view')->render('emails.parts.items_table', [ |
| 22 |
'order' => $order, |
| 23 |
'formattedItems' => $order->order_items, |
| 24 |
'heading' => __('Order Summary', 'fluent-cart'), |
| 25 |
]); |
| 26 |
|
| 27 |
|
| 28 |
if ($order->subscriptions && $order->subscriptions->count() > 0) { |
| 29 |
\FluentCart\App\App::make('view')->render('invoice.parts.subscription_items', [ |
| 30 |
'subscriptions' => $order->subscriptions, |
| 31 |
'order' => $order |
| 32 |
]); |
| 33 |
} |
| 34 |
|
| 35 |
$licenses = $order->getLicenses(); |
| 36 |
if ($licenses && $licenses->count() > 0) { |
| 37 |
\FluentCart\App\App::make('view')->render('emails.parts.licenses', [ |
| 38 |
'licenses' => $licenses, |
| 39 |
'heading' => __('Licenses', 'fluent-cart'), |
| 40 |
'show_notice' => false |
| 41 |
]); |
| 42 |
} |
| 43 |
|
| 44 |
$downloads = $order->getDownloads(); |
| 45 |
|
| 46 |
if ($downloads) { |
| 47 |
\FluentCart\App\App::make('view')->render('emails.parts.downloads', [ |
| 48 |
'order' => $order, |
| 49 |
'heading' => __('Downloads', 'fluent-cart'), |
| 50 |
'downloadItems' => $downloads, |
| 51 |
]); |
| 52 |
} |
| 53 |
|
| 54 |
echo '<hr />'; |
| 55 |
|
| 56 |
\FluentCart\App\App::make('view')->render('emails.parts.addresses', [ |
| 57 |
'order' => $order, |
| 58 |
]); |
| 59 |
|
| 60 |
\FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [ |
| 61 |
'content' => __('To download receipt and view your order details, please visit the order details page.', 'fluent-cart'), |
| 62 |
'link' => $order->getViewUrl('customer'), |
| 63 |
'button_text' => __('View Details', 'fluent-cart'), |
| 64 |
]); |
| 65 |
|