| 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 |
/** translators: %s is the customer name */ |
| 12 |
printf( |
| 13 |
esc_html__( 'Hello %s,', 'fluent-cart' ), |
| 14 |
esc_html($order->customer->full_name) |
| 15 |
); |
| 16 |
?> |
| 17 |
</p> |
| 18 |
|
| 19 |
<p> |
| 20 |
<?php |
| 21 |
echo esc_html__( "Wonderful news! Your order has been successfully delivered. We hope you're thrilled with your purchase! If you need any assistance or have feedback, we're here to help.", 'fluent-cart' ) |
| 22 |
?> |
| 23 |
</p> |
| 24 |
</div> |
| 25 |
|
| 26 |
<?php |
| 27 |
|
| 28 |
\FluentCart\App\App::make('view')->render('emails.parts.items_table', [ |
| 29 |
'order' => $order, |
| 30 |
'formattedItems' => $order->order_items, |
| 31 |
'heading' => __('Order Summary', 'fluent-cart'), |
| 32 |
]); |
| 33 |
|
| 34 |
$downloads = $order->getDownloads(); |
| 35 |
if($downloads) { |
| 36 |
\FluentCart\App\App::make('view')->render('emails.parts.downloads', [ |
| 37 |
'order' => $order, |
| 38 |
'heading' => __('Downloads', 'fluent-cart'), |
| 39 |
'downloadItems' => $downloads, |
| 40 |
]); |
| 41 |
} |
| 42 |
|
| 43 |
echo '<hr />'; |
| 44 |
|
| 45 |
\FluentCart\App\App::make('view')->render('emails.parts.addresses', [ |
| 46 |
'order' => $order, |
| 47 |
]); |
| 48 |
|
| 49 |
\FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [ |
| 50 |
'content' => __('Thank you for shopping with us! We look forward to serving you again.', 'fluent-cart'), |
| 51 |
'link' => $order->getViewUrl('customer'), |
| 52 |
'button_text' => __('View Details', 'fluent-cart'), |
| 53 |
]); |
| 54 |
|