admin-cancelled-order.php
5 years ago
admin-failed-order.php
5 years ago
admin-new-order.php
5 years ago
customer-completed-order.php
5 years ago
customer-invoice.php
5 years ago
customer-new-account.php
4 years ago
customer-note.php
5 years ago
customer-on-hold-order.php
3 years ago
customer-processing-order.php
5 years ago
customer-refunded-order.php
4 years ago
customer-reset-password.php
5 years ago
email-addresses.php
4 years ago
email-customer-details.php
5 years ago
email-downloads.php
5 years ago
email-order-details.php
5 years ago
email-order-items.php
5 years ago
admin-failed-order.php
59 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin failed order email (plain text) |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/admin-failed-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://docs.woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates\Emails\Plain |
| 15 | * @version 3.7.0 |
| 16 | */ |
| 17 | |
| 18 | defined( 'ABSPATH' ) || exit; |
| 19 | |
| 20 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n"; |
| 21 | echo esc_html( wp_strip_all_tags( $email_heading ) ); |
| 22 | echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 23 | |
| 24 | /* translators: %1$s: Order number. %2$s: Customer full name. */ |
| 25 | echo sprintf( esc_html__( 'Payment for order #%1$s from %2$s has failed. The order was as follows:', 'woocommerce' ), esc_html( $order->get_order_number() ), esc_html( $order->get_formatted_billing_full_name() ) ) . "\n\n"; |
| 26 | |
| 27 | /* |
| 28 | * @hooked WC_Emails::order_details() Shows the order details table. |
| 29 | * @hooked WC_Structured_Data::generate_order_data() Generates structured data. |
| 30 | * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. |
| 31 | * @since 2.5.0 |
| 32 | */ |
| 33 | do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); |
| 34 | |
| 35 | echo "\n----------------------------------------\n\n"; |
| 36 | |
| 37 | /* |
| 38 | * @hooked WC_Emails::order_meta() Shows order meta data. |
| 39 | */ |
| 40 | do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); |
| 41 | |
| 42 | /* |
| 43 | * @hooked WC_Emails::customer_details() Shows customer details |
| 44 | * @hooked WC_Emails::email_address() Shows email address |
| 45 | */ |
| 46 | do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); |
| 47 | |
| 48 | echo "\n\n----------------------------------------\n\n"; |
| 49 | |
| 50 | /** |
| 51 | * Show user-defined additional content - this is set in each email's settings. |
| 52 | */ |
| 53 | if ( $additional_content ) { |
| 54 | echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); |
| 55 | echo "\n\n----------------------------------------\n\n"; |
| 56 | } |
| 57 | |
| 58 | echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); |
| 59 |