| 1 |
<?php |
| 2 |
/** |
| 3 |
* Customer "subscription completed" email (plain text) — the renewal limit |
| 4 |
* was reached and no further payments will be charged. |
| 5 |
* |
| 6 |
* Override by copying it to yourtheme/better-payment/emails/plain/bp-subscription-completed.php. |
| 7 |
* |
| 8 |
* @package Better_Payment\Lite |
| 9 |
* @since 2.4.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
exit; |
| 14 |
} |
| 15 |
|
| 16 |
echo '= ' . esc_html( wp_strip_all_tags( $email_heading ) ) . " =\n\n"; |
| 17 |
|
| 18 |
/* translators: %s: customer first name */ |
| 19 |
printf( esc_html__( 'Hi %s,', 'better-payment' ), esc_html( $order->get_billing_first_name() ) ); |
| 20 |
echo "\n\n"; |
| 21 |
|
| 22 |
printf( |
| 23 |
/* translators: 1: order number, 2: site title */ |
| 24 |
esc_html__( 'Your subscription (order %1$s) on %2$s is complete — it reached its planned number of renewals, and no further payments will be charged.', 'better-payment' ), |
| 25 |
esc_html( '#' . $order->get_order_number() ), |
| 26 |
esc_html( wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ) |
| 27 |
); |
| 28 |
echo "\n\n"; |
| 29 |
|
| 30 |
if ( ! empty( $item_names ) ) { |
| 31 |
printf( |
| 32 |
/* translators: %s: comma-separated subscription product names */ |
| 33 |
esc_html__( 'Subscription: %s', 'better-payment' ), |
| 34 |
esc_html( implode( ', ', $item_names ) ) |
| 35 |
); |
| 36 |
echo "\n"; |
| 37 |
|
| 38 |
if ( '' !== $schedule ) { |
| 39 |
printf( |
| 40 |
/* translators: %s: billing schedule, e.g. "month" or "every 3 months" */ |
| 41 |
esc_html__( 'Billing schedule: %s', 'better-payment' ), |
| 42 |
esc_html( $schedule ) |
| 43 |
); |
| 44 |
echo "\n"; |
| 45 |
} |
| 46 |
|
| 47 |
echo "\n"; |
| 48 |
} |
| 49 |
|
| 50 |
if ( '' !== $view_url ) { |
| 51 |
esc_html_e( 'View your subscription:', 'better-payment' ); |
| 52 |
echo ' ' . esc_url( $view_url ) . "\n\n"; |
| 53 |
} |
| 54 |
|
| 55 |
if ( $additional_content ) { |
| 56 |
echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ) . "\n\n"; |
| 57 |
} |
| 58 |
|
| 59 |
echo esc_html( wp_strip_all_tags( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ) ); |
| 60 |
|