| 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 your order! We have received your order placed with offline payment method. We will process your order once payment is confirmed. Here are 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 |
echo '<hr />'; |
| 28 |
|
| 29 |
\FluentCart\App\App::make('view')->render('emails.parts.addresses', [ |
| 30 |
'order' => $order, |
| 31 |
]); |
| 32 |
|
| 33 |
\FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [ |
| 34 |
'content' => __('To view your order details, please visit the order details page. Payment information is included in the email.', 'fluent-cart'), |
| 35 |
'link' => $order->getViewUrl('customer'), |
| 36 |
'button_text' => __('View Order Details', 'fluent-cart') |
| 37 |
]); |
| 38 |
|