Update on-hold emails copy

This commit is contained in:
Gerhard Potgieter 2018-09-06 12:48:39 +02:00
parent b03e5cff45
commit 697e3229f2
3 changed files with 31 additions and 23 deletions

View File

@ -54,7 +54,7 @@ if ( ! class_exists( 'WC_Email_Customer_On_Hold_Order', false ) ) :
* @return string * @return string
*/ */
public function get_default_subject() { public function get_default_subject() {
return __( 'Your {site_title} order receipt from {order_date}', 'woocommerce' ); return __( 'Your {site_title} order has been received!', 'woocommerce' );
} }
/** /**
@ -97,7 +97,6 @@ if ( ! class_exists( 'WC_Email_Customer_On_Hold_Order', false ) ) :
/** /**
* Get content html. * Get content html.
* *
* @access public
* @return string * @return string
*/ */
public function get_content_html() { public function get_content_html() {
@ -115,7 +114,6 @@ if ( ! class_exists( 'WC_Email_Customer_On_Hold_Order', false ) ) :
/** /**
* Get content plain. * Get content plain.
* *
* @access public
* @return string * @return string
*/ */
public function get_content_plain() { public function get_content_plain() {

View File

@ -10,26 +10,27 @@
* happen. When this occurs the version of the template file will be bumped and * happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes. * the readme will list any important changes.
* *
* @see https://docs.woocommerce.com/document/template-structure/ * @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes * @package WooCommerce/Templates/Emails
* @package WooCommerce/Templates/Emails * @version 3.5.0
* @version 2.5.0
*/ */
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
exit; exit;
} }
/** /*
* @hooked WC_Emails::email_header() Output the email header * @hooked WC_Emails::email_header() Output the email header
*/ */
do_action( 'woocommerce_email_header', $email_heading, $email ); ?> do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
<p><?php _e( "Your order is on-hold until we confirm payment has been received. Your order details are shown below for your reference:", 'woocommerce' ); ?></p> <?php /* translators: %s: Customer first name */ ?>
<p><?php printf( __( 'Hi %s,', 'woocommerce' ), $order->get_first_name() ); ?></p><?php // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
<p><?php _e( 'Thanks for your order. Its on-hold until we confirm that payment has been received. In the meantime, heres a reminder of what you ordered:', 'woocommerce' ); ?></p><?php // phpcs:ignore WordPress.XSS.EscapeOutput ?>
<?php <?php
/** /*
* @hooked WC_Emails::order_details() Shows the order details table. * @hooked WC_Emails::order_details() Shows the order details table.
* @hooked WC_Structured_Data::generate_order_data() Generates structured data. * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
* @hooked WC_Structured_Data::output_structured_data() Outputs structured data. * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
@ -37,18 +38,24 @@ do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
*/ */
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
/** /*
* @hooked WC_Emails::order_meta() Shows order meta data. * @hooked WC_Emails::order_meta() Shows order meta data.
*/ */
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
/** /*
* @hooked WC_Emails::customer_details() Shows customer details * @hooked WC_Emails::customer_details() Shows customer details
* @hooked WC_Emails::email_address() Shows email address * @hooked WC_Emails::email_address() Shows email address
*/ */
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
/** ?>
<p>
<?php _e( 'We look forward to fulfilling your order soon.', 'woocommerce' ); // phpcs:ignore WordPress.XSS.EscapeOutput ?>
</p>
<?php
/*
* @hooked WC_Emails::email_footer() Output the email footer * @hooked WC_Emails::email_footer() Output the email footer
*/ */
do_action( 'woocommerce_email_footer', $email ); do_action( 'woocommerce_email_footer', $email );

View File

@ -10,23 +10,24 @@
* happen. When this occurs the version of the template file will be bumped and * happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes. * the readme will list any important changes.
* *
* @see https://docs.woocommerce.com/document/template-structure/ * @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes * @package WooCommerce/Templates/Emails/Plain
* @package WooCommerce/Templates/Emails/Plain * @version 3.5.0
* @version 2.5.0
*/ */
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
exit; exit;
} }
echo "= " . $email_heading . " =\n\n"; echo '= ' . $email_heading . " =\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
echo __( "Your order is on-hold until we confirm payment has been received. Your order details are shown below for your reference:", 'woocommerce' ) . "\n\n"; /* translators: %s: Customer first name */
echo sprintf( __( 'Hi %s,', 'woocommerce' ), $order->get_first_name() ) . "\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
echo __( 'Thanks for your order. Its on-hold until we confirm that payment has been received. In the meantime, heres a reminder of what you ordered:', 'woocommerce' ) . "\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
/** /*
* @hooked WC_Emails::order_details() Shows the order details table. * @hooked WC_Emails::order_details() Shows the order details table.
* @hooked WC_Structured_Data::generate_order_data() Generates structured data. * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
* @hooked WC_Structured_Data::output_structured_data() Outputs structured data. * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
@ -36,17 +37,19 @@ do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_tex
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
/** /*
* @hooked WC_Emails::order_meta() Shows order meta data. * @hooked WC_Emails::order_meta() Shows order meta data.
*/ */
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
/** /*
* @hooked WC_Emails::customer_details() Shows customer details * @hooked WC_Emails::customer_details() Shows customer details
* @hooked WC_Emails::email_address() Shows email address * @hooked WC_Emails::email_address() Shows email address
*/ */
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
_e( 'We look forward to fulfilling your order soon.', 'woocommerce' ); // phpcs:ignore WordPress.XSS.EscapeOutput
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); // phpcs:ignore WordPress.XSS.EscapeOutput