PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.6
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.6
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 / subscription / renewal / customer.php

customer.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.6.6, at app/Views/emails/subscription/renewal/customer.php

47 lines 1.4 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 \FluentCart\App\Models\Subscription $subscription
5 * @var \FluentCart\App\Models\Order $order
6 */
7
8 $transaction = $subscription->getLatestTransaction();
9 ?>
10
11 <div class="space_bottom_30">
12 <p>
13 <?php
14 printf(
15 /* translators: %s is the customer name */
16 esc_html__( 'Hello %s,', 'fluent-cart' ),
17 esc_html($subscription->customer->full_name)
18 );
19 ?>
20 </p>
21
22 <p>
23 <?php
24 printf(
25 /* translators: %s is the subscription item name */
26 esc_html__( 'Your subscription has been successfully renewed, ensuring uninterrupted access to %s.', 'fluent-cart' ),
27 esc_html( $subscription->display_item_name )
28 );
29 ?>
30 </p>
31 </div>
32
33 <?php
34 \FluentCart\App\App::make('view')->render('emails.parts.subscription_item', [
35 'transaction' => $transaction,
36 'order' => $transaction->order,
37 'subscription' => $subscription,
38 'heading' => __('Summary', 'fluent-cart'),
39 ]);
40
41 \FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [
42 'content' => __('To manage your subscription, download receipts, please visit the details page.', 'fluent-cart'),
43 'link' => $subscription->getViewUrl('customer'),
44 'button_text' => __('View Details', 'fluent-cart'),
45 ]);
46 ?>
47