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 / block / customer-note.php
customer-note.php
63 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Customer note email (initial block content)
4 *
5 * This template can be overridden by editing it in the WooCommerce email editor.
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\Block
15 * @version 10.7.0
16 */
17
18 use Automattic\WooCommerce\Internal\EmailEditor\BlockEmailRenderer;
19
20 defined( 'ABSPATH' ) || exit;
21
22 // phpcs:disable Squiz.PHP.EmbeddedPhp.ContentBeforeOpen -- removed to prevent empty new lines.
23 // phpcs:disable Squiz.PHP.EmbeddedPhp.ContentAfterEnd -- removed to prevent empty new lines.
24 ?>
25
26 <!-- wp:heading -->
27 <h2 class="wp-block-heading"> <?php echo esc_html__( 'A note has been added to your order', 'woocommerce' ); ?> </h2>
28 <!-- /wp:heading -->
29
30 <!-- wp:paragraph -->
31 <p><?php
32 /* translators: %s: Customer first name */
33 printf( esc_html__( 'Hi %s,', 'woocommerce' ), '<!--[woocommerce/customer-first-name]-->' );
34 ?></p>
35 <!-- /wp:paragraph -->
36
37 <!-- wp:paragraph -->
38 <p> <?php echo esc_html__( 'The following note has been added to your order:', 'woocommerce' ); ?> </p>
39 <!-- /wp:paragraph -->
40
41 <!-- wp:quote {"lock":{"move":false,"remove":true}} -->
42 <blockquote class="wp-block-quote">
43 <!-- wp:paragraph {"lock":{"move":false,"remove":true}} -->
44 <p> <?php echo '<!--[woocommerce/admin-order-note]-->&nbsp;'; // The non-breaking space is used to prevent the comment from being removed by the email editor. ?> </p>
45 <!-- /wp:paragraph -->
46 </blockquote>
47 <!-- /wp:quote -->
48
49 <!-- wp:paragraph -->
50 <p> <?php echo esc_html__( 'As a reminder, here are your order details:', 'woocommerce' ); ?> </p>
51 <!-- /wp:paragraph -->
52
53 <!-- wp:woocommerce/email-content {"lock":{"move":false,"remove":true}} -->
54 <div class="wp-block-woocommerce-email-content"> <?php echo esc_html( BlockEmailRenderer::WOO_EMAIL_CONTENT_PLACEHOLDER ); ?> </div>
55 <!-- /wp:woocommerce/email-content -->
56
57 <!-- wp:paragraph {"align":"center"} -->
58 <p class="has-text-align-center"><?php
59 /* translators: %s: Store admin email */
60 printf( esc_html__( 'Thanks again! If you need any help with your order, please contact us at %s.', 'woocommerce' ), '<!--[woocommerce/store-email]-->' );
61 ?></p>
62 <!-- /wp:paragraph -->
63