| 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> |
| 10 |
<?php |
| 11 |
printf( |
| 12 |
/** translators: %s is the customer name */ |
| 13 |
esc_html__( 'Hello %s,', 'fluent-cart' ), |
| 14 |
esc_html( $order->customer->full_name ) |
| 15 |
); |
| 16 |
?> |
| 17 |
</p> |
| 18 |
<p> |
| 19 |
<?php echo esc_html__( 'Great news! Your order is on its way to you 📦.', 'fluent-cart' ); ?> |
| 20 |
</p> |
| 21 |
</div> |
| 22 |
|
| 23 |
<?php |
| 24 |
|
| 25 |
\FluentCart\App\App::make('view')->render('emails.parts.items_table', [ |
| 26 |
'order' => $order, |
| 27 |
'formattedItems' => $order->order_items, |
| 28 |
'heading' => esc_html__('Order Summary', 'fluent-cart'), |
| 29 |
]); |
| 30 |
|
| 31 |
$downloads = $order->getDownloads(); |
| 32 |
if($downloads) { |
| 33 |
\FluentCart\App\App::make('view')->render('emails.parts.downloads', [ |
| 34 |
'order' => $order, |
| 35 |
'heading' => esc_html__('Downloads', 'fluent-cart'), |
| 36 |
'downloadItems' => $downloads, |
| 37 |
]); |
| 38 |
} |
| 39 |
|
| 40 |
echo '<hr />'; |
| 41 |
|
| 42 |
\FluentCart\App\App::make('view')->render('emails.parts.addresses', [ |
| 43 |
'order' => $order, |
| 44 |
]); |
| 45 |
|
| 46 |
\FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [ |
| 47 |
'content' => esc_html__('Thank you for choosing us! We hope you’re excited about your order. If you have any questions, feel free to reach out.', 'fluent-cart'), |
| 48 |
'link' => $order->getViewUrl('customer'), |
| 49 |
'button_text' => esc_html__('View Details', 'fluent-cart'), |
| 50 |
]); |
| 51 |
|