| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 |
<?php |
| 3 |
/** |
| 4 |
* @var \FluentCart\App\Models\Order $order |
| 5 |
*/ |
| 6 |
?> |
| 7 |
|
| 8 |
<div class="space_bottom_30"> |
| 9 |
<p> |
| 10 |
<?php |
| 11 |
printf( |
| 12 |
/* translators: %s is the customer's full name */ |
| 13 |
esc_html__( 'Hello %s,', 'fluent-cart' ), |
| 14 |
esc_html($order->customer->full_name) |
| 15 |
); |
| 16 |
?> |
| 17 |
</p> |
| 18 |
|
| 19 |
<p> |
| 20 |
<?php |
| 21 |
printf( |
| 22 |
/* translators: %s is the renewal order number */ |
| 23 |
esc_html__( 'This is a friendly reminder that your renewal order %s is still awaiting payment. Please complete the payment at your earliest convenience to avoid any interruption to your subscription.', 'fluent-cart' ), |
| 24 |
esc_html( $order->invoice_no ) |
| 25 |
); |
| 26 |
?> |
| 27 |
</p> |
| 28 |
</div> |
| 29 |
|
| 30 |
<?php |
| 31 |
|
| 32 |
\FluentCart\App\App::make('view')->render('emails.parts.items_table', [ |
| 33 |
'order' => $order, |
| 34 |
'formattedItems' => $order->order_items, |
| 35 |
'heading' => __('Renewal Summary', 'fluent-cart'), |
| 36 |
]); |
| 37 |
|
| 38 |
echo '<hr />'; |
| 39 |
|
| 40 |
\FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [ |
| 41 |
'content' => __('Please complete the payment to keep your subscription active.', 'fluent-cart'), |
| 42 |
'link' => $order->getViewUrl('customer'), |
| 43 |
'button_text' => __('Pay Now', 'fluent-cart'), |
| 44 |
]); |
| 45 |
|