plain
8 years ago
admin-cancelled-order.php
8 years ago
admin-failed-order.php
8 years ago
admin-new-order.php
9 years ago
customer-completed-order.php
9 years ago
customer-invoice.php
8 years ago
customer-new-account.php
9 years ago
customer-note.php
9 years ago
customer-on-hold-order.php
9 years ago
customer-processing-order.php
9 years ago
customer-refunded-order.php
9 years ago
customer-reset-password.php
9 years ago
email-addresses.php
8 years ago
email-customer-details.php
8 years ago
email-downloads.php
8 years ago
email-footer.php
9 years ago
email-header.php
9 years ago
email-order-details.php
8 years ago
email-order-items.php
8 years ago
email-styles.php
8 years ago
customer-note.php
59 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customer note email |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-note.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://docs.woocommerce.com/document/template-structure/ |
| 14 | * @author WooThemes |
| 15 | * @package WooCommerce/Templates/Emails |
| 16 | * @version 2.5.0 |
| 17 | */ |
| 18 | |
| 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 20 | exit; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * @hooked WC_Emails::email_header() Output the email header |
| 25 | */ |
| 26 | do_action( 'woocommerce_email_header', $email_heading, $email ); ?> |
| 27 | |
| 28 | <p><?php _e( "Hello, a note has just been added to your order:", 'woocommerce' ); ?></p> |
| 29 | |
| 30 | <blockquote><?php echo wpautop( wptexturize( $customer_note ) ) ?></blockquote> |
| 31 | |
| 32 | <p><?php _e( "For your reference, your order details are shown below.", 'woocommerce' ); ?></p> |
| 33 | |
| 34 | <?php |
| 35 | |
| 36 | /** |
| 37 | * @hooked WC_Emails::order_details() Shows the order details table. |
| 38 | * @hooked WC_Structured_Data::generate_order_data() Generates structured data. |
| 39 | * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. |
| 40 | * @since 2.5.0 |
| 41 | */ |
| 42 | do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); |
| 43 | |
| 44 | /** |
| 45 | * @hooked WC_Emails::order_meta() Shows order meta data. |
| 46 | */ |
| 47 | do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); |
| 48 | |
| 49 | /** |
| 50 | * @hooked WC_Emails::customer_details() Shows customer details |
| 51 | * @hooked WC_Emails::email_address() Shows email address |
| 52 | */ |
| 53 | do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); |
| 54 | |
| 55 | /** |
| 56 | * @hooked WC_Emails::email_footer() Output the email footer |
| 57 | */ |
| 58 | do_action( 'woocommerce_email_footer', $email ); |
| 59 |