PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 1.5.0
Subscriptions for WooCommerce with Stripe Recurring Payments v1.5.0
2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 All 61 releases
subscription / templates / emails / status-changed-admin-html.php

status-changed-admin-html.php in Subscriptions for WooCommerce with Stripe Recurring Payments 1.5.0, at templates/emails/status-changed-admin-html.php

60 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Mail template for Subscription status changed (Admin).
4 *
5 * @var string $email_heading Email Heading.
6 * @var string $old_status Readable Old Status of Subscription.
7 * @var string $new_status Readable New Status of Subscription.
8 * @var int $id Subscription id.
9 * @var string $product_name Product name.
10 * @var int $qty Subscription Quantity.
11 * @var string $amount Subscription Amount with price format.
12 * @var string $next_date Next payment date.
13 */
14
15 // translators: first is older status and last is newly updated status.
16 $opening_paragraph = __( 'Subscription status changed from %1$s to %2$s', 'wp_subscription' );
17 ?>
18
19 <?php do_action( 'woocommerce_email_header', $email_heading ); ?>
20
21
22 <p><?php printf( esc_html( $opening_paragraph ), wp_kses_post( '<b>' . $old_status . '</b>' ), wp_kses_post( '<b>' . $new_status . '</b>' ) ); ?></p>
23
24 <table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
25 <tbody>
26 <tr>
27 <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Subscription Id', 'wp_subscription' ); ?></th>
28 <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $id ); ?></td>
29 </tr>
30 <tr>
31 <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Product', 'wp_subscription' ); ?></th>
32 <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $product_name ); ?></td>
33 </tr>
34 <tr>
35 <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Qty', 'wp_subscription' ); ?></th>
36 <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $qty ); ?></td>
37 </tr>
38 <tr>
39 <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Amount', 'wp_subscription' ); ?></th>
40 <td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $amount ); ?></td>
41 </tr>
42 </tbody>
43 </table>
44 <br>
45 <p>
46 <?php
47 echo wp_kses_post(
48 make_clickable(
49 sprintf(
50 // translators: subscription id.
51 __( 'You can view and edit this subscription in the dashboard here: %s', 'wp_subscription' ),
52 admin_url( 'post.php?post=' . $id . '&action=edit' )
53 )
54 )
55 );
56 ?>
57 </p>
58
59 <?php do_action( 'woocommerce_email_footer' ); ?>
60