| 1 |
<?php if (!defined('ABSPATH')) exit; ?> |
| 2 |
<?php |
| 3 |
/** |
| 4 |
* @var $order \FluentCart\App\Models\Order |
| 5 |
*/ |
| 6 |
?> |
| 7 |
<div class="space_bottom_30"> |
| 8 |
<p><?php |
| 9 |
printf( |
| 10 |
/* translators: %s is the customer's full name */ |
| 11 |
esc_html__('Hello %s,', 'fluent-cart'), |
| 12 |
esc_html($order->customer->full_name) |
| 13 |
); |
| 14 |
?></p> |
| 15 |
<p> |
| 16 |
<?php esc_html_e('We have processed a refund for your recent order', 'fluent-cart'); ?> |
| 17 |
<a href="<?php echo esc_url($order->getViewUrl('customer')); ?>"> |
| 18 |
#<?php echo esc_html($order->invoice_no); ?> |
| 19 |
</a>. |
| 20 |
<?php echo esc_html__('Thank you for your understanding, and we truly value your trust in us. Below are the details of your refund.', 'fluent-cart'); ?> |
| 21 |
</p> |
| 22 |
</div> |
| 23 |
<?php |
| 24 |
|
| 25 |
\FluentCart\App\App::make('view')->render('emails.parts.items_table', [ |
| 26 |
'order' => $order, |
| 27 |
'formattedItems' => $order->order_items, |
| 28 |
'heading' => __('Summary', 'fluent-cart'), |
| 29 |
]); |
| 30 |
|
| 31 |
echo '<hr />'; |
| 32 |
|
| 33 |
\FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [ |
| 34 |
'content' => __('The refund should appear in your account within 5-10 business days, depending on your payment provider.', 'fluent-cart'), |
| 35 |
'link' => $order->getViewUrl('customer'), |
| 36 |
'button_text' => __('View Details', 'fluent-cart') |
| 37 |
]); |
| 38 |
|