PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.2
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.2
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
fluent-cart / app / Views / emails / order / refunded / admin.php

admin.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.6.2, at app/Views/emails/order/refunded/admin.php

48 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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