| 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 |
<?php if($order->payment_status === \FluentCart\App\Helpers\Status::PAYMENT_REFUNDED): ?> |
| 10 |
<p> |
| 11 |
<?php |
| 12 |
printf( |
| 13 |
/* translators: %s is the customer's full name */ |
| 14 |
esc_html__('A full refund has been processed for %s. Here are the details:', 'fluent-cart'), |
| 15 |
esc_html($order->customer->full_name) |
| 16 |
); |
| 17 |
?> |
| 18 |
</p> |
| 19 |
<?php else: ?> |
| 20 |
<p> |
| 21 |
<?php |
| 22 |
printf( |
| 23 |
/* translators: %s is the customer's full name */ |
| 24 |
esc_html__('A partial refund has been processed for %s. Here are the details:', 'fluent-cart'), |
| 25 |
esc_html($order->customer->full_name) |
| 26 |
); |
| 27 |
?> |
| 28 |
</p> |
| 29 |
<?php endif; ?> |
| 30 |
</div> |
| 31 |
|
| 32 |
<?php |
| 33 |
|
| 34 |
\FluentCart\App\App::make('view')->render('emails.parts.items_table', [ |
| 35 |
'order' => $order, |
| 36 |
'formattedItems' => $order->order_items, |
| 37 |
'heading' => __('Summary', 'fluent-cart'), |
| 38 |
'is_refund' => true, |
| 39 |
]); |
| 40 |
|
| 41 |
echo '<hr />'; |
| 42 |
|
| 43 |
\FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [ |
| 44 |
'content' => __('View the details of this refund on the order details page.', 'fluent-cart'), |
| 45 |
'link' => $order->getViewUrl('admin'), |
| 46 |
'button_text' => __('View Details', 'fluent-cart') |
| 47 |
]); |
| 48 |
|