PluginProbe
WooCommerce / 11.1.0-beta.2
WooCommerce v11.1.0-beta.2
11.1.0 11.1.0-rc.2 11.1.0-rc.1 11.1.0-beta.2 11.1.0-beta.1 11.0.1 11.0.0 11.0.0-rc.3 11.0.0-rc.2 11.0.0-rc.1 11.0.0-beta.2 11.0.0-beta.1 10.9.4 10.9.3 10.9.2 10.9.1 10.9.0 10.9.0-rc.1 10.9.0-beta.2 10.9.0-beta.1 10.8.1 10.8.0 10.8.0-rc.1 10.8.0-beta.2 10.8.0-beta.1 All 648 releases
woocommerce / templates / emails / customer-processing-order.php
customer-processing-order.php
85 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Customer processing order email
4 *
5 * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-processing-order.php.
6 *
7 * HOWEVER, on occasion WooCommerce will need to update template files and you
8 * (the theme developer) will need to copy the new files to your theme to
9 * maintain compatibility. We try to do this as little as possible, but it does
10 * happen. When this occurs the version of the template file will be bumped and
11 * the readme will list any important changes.
12 *
13 * @see https://woocommerce.com/document/template-structure/
14 * @package WooCommerce\Templates\Emails
15 * @version 10.4.0
16 */
17
18 use Automattic\WooCommerce\Utilities\FeaturesUtil;
19
20 if ( ! defined( 'ABSPATH' ) ) {
21 exit;
22 }
23
24 $email_improvements_enabled = FeaturesUtil::feature_is_enabled( 'email_improvements' );
25
26 /*
27 * @hooked WC_Emails::email_header() Output the email header
28 */
29 do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
30
31 <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?>
32 <p>
33 <?php
34 if ( ! empty( $order->get_billing_first_name() ) ) {
35 /* translators: %s: Customer first name */
36 printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $order->get_billing_first_name() ) );
37 } else {
38 printf( esc_html__( 'Hi,', 'woocommerce' ) );
39 }
40 ?>
41 </p>
42 <?php if ( $email_improvements_enabled ) : ?>
43 <p><?php esc_html_e( 'Just to let you know &mdash; we’ve received your order, and it is now being processed.', 'woocommerce' ); ?></p>
44 <p><?php esc_html_e( 'Here’s a reminder of what you’ve ordered:', 'woocommerce' ); ?></p>
45 <?php else : ?>
46 <?php /* translators: %s: Order number */ ?>
47 <p><?php printf( esc_html__( 'Just to let you know &mdash; we\'ve received your order #%s, and it is now being processed:', 'woocommerce' ), esc_html( $order->get_order_number() ) ); ?></p>
48 <?php endif; ?>
49 <?php echo $email_improvements_enabled ? '</div>' : ''; ?>
50
51 <?php
52
53 /*
54 * @hooked WC_Emails::order_details() Shows the order details table.
55 * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
56 * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
57 * @since 2.5.0
58 */
59 do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
60
61 /*
62 * @hooked WC_Emails::order_meta() Shows order meta data.
63 */
64 do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
65
66 /*
67 * @hooked WC_Emails::customer_details() Shows customer details
68 * @hooked WC_Emails::email_address() Shows email address
69 */
70 do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
71
72 /**
73 * Show user-defined additional content - this is set in each email's settings.
74 */
75 if ( $additional_content ) {
76 echo $email_improvements_enabled ? '<table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation"><tr><td class="email-additional-content">' : '';
77 echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
78 echo $email_improvements_enabled ? '</td></tr></table>' : '';
79 }
80
81 /*
82 * @hooked WC_Emails::email_footer() Output the email footer
83 */
84 do_action( 'woocommerce_email_footer', $email );
85