@@ -26,12 +26,12 @@ public function is_enabled() {
26
26
* Mail Constructor
27
27
*/
28
28
public function __construct () {
29
- $ this ->id = 'hametwoo_cancel_notification ' ;
29
+ $ this ->id = 'hametwoo_cancel_notification ' ;
30
30
$ this ->customer_email = true ;
31
- $ this ->title = __ ( 'Order Cancel Notification ' , 'hametwoo ' );
32
- $ this ->description = __ ( 'Send notification email to customer if the order is automatically cancelled. ' , 'hametwoo ' );
33
- $ this ->heading = __ ( 'Order Cancelled ' , 'hametwoo ' );
34
- $ this ->subject = __ ( 'Your order #{order_number} has been cancelled at {order_date} ' , 'hametwoo ' );
31
+ $ this ->title = __ ( 'Order Cancel Notification ' , 'hametwoo ' );
32
+ $ this ->description = __ ( 'Send notification email to customer if the order is automatically cancelled. ' , 'hametwoo ' );
33
+ $ this ->heading = __ ( 'Order Cancelled ' , 'hametwoo ' );
34
+ $ this ->subject = __ ( 'Your order #{order_number} has been cancelled at {order_date} ' , 'hametwoo ' );
35
35
$ this ->template_html = 'emails/customer-cancel-notification.php ' ;
36
36
$ this ->template_plain = 'emails/plain/customer-cancel-notification.php ' ;
37
37
$ this ->template_base = HametWoo::root_dir () . '/templates/ ' ;
@@ -71,14 +71,14 @@ public function trigger( $order_id ) {
71
71
// Don't send with no reason.
72
72
return ;
73
73
}
74
- $ this ->object = $ order ;
74
+ $ this ->object = $ order ;
75
75
$ this ->recipient = $ this ->object ->billing_email ;
76
76
// Is html?
77
77
foreach ( [
78
78
'order_number ' => $ order ->get_order_number (),
79
- 'order_date ' => date_i18n ( get_option ( 'date_format ' ) ),
79
+ 'order_date ' => date_i18n ( get_option ( 'date_format ' ) ),
80
80
] as $ find => $ result ) {
81
- $ this ->find [ $ find ] = "{ {$ find }} " ;
81
+ $ this ->find [ $ find ] = "{ {$ find }} " ;
82
82
$ this ->replace [ $ find ] = $ result ;
83
83
}
84
84
$ this ->send ( $ this ->get_recipient (), $ this ->get_subject (), $ this ->get_content (), $ this ->get_headers (), $ this ->get_attachments () );
@@ -96,7 +96,7 @@ public function get_content_html() {
96
96
'email_heading ' => $ this ->get_heading (),
97
97
'sent_to_admin ' => false ,
98
98
'plain_text ' => false ,
99
- 'email ' => $ this ,
99
+ 'email ' => $ this ,
100
100
] );
101
101
}
102
102
@@ -112,7 +112,7 @@ public function get_content_plain() {
112
112
'email_heading ' => $ this ->get_heading (),
113
113
'sent_to_admin ' => false ,
114
114
'plain_text ' => true ,
115
- 'email ' => $ this ,
115
+ 'email ' => $ this ,
116
116
] );
117
117
}
118
118
}
0 commit comments