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-invoice.php
83 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customer invoice email |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-invoice.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 3.3.0 |
| 17 | */ |
| 18 | |
| 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 20 | exit; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Executes the e-mail header. |
| 25 | * |
| 26 | * @hooked WC_Emails::email_header() Output the email header |
| 27 | */ |
| 28 | do_action( 'woocommerce_email_header', $email_heading, $email ); ?> |
| 29 | |
| 30 | <?php if ( $order->has_status( 'pending' ) ) : ?> |
| 31 | <p> |
| 32 | <?php |
| 33 | printf( |
| 34 | wp_kses( |
| 35 | /* translators: %1s item is the name of the site, %2s is a html link */ |
| 36 | __( 'An order has been created for you on %1$s. %2$s', 'woocommerce' ), |
| 37 | array( |
| 38 | 'a' => array( |
| 39 | 'href' => array(), |
| 40 | ), |
| 41 | ) |
| 42 | ), |
| 43 | esc_html( get_bloginfo( 'name', 'display' ) ), |
| 44 | '<a href="' . esc_url( $order->get_checkout_payment_url() ) . '">' . esc_html__( 'Pay for this order', 'woocommerce' ) . '</a>' |
| 45 | ); |
| 46 | ?> |
| 47 | </p> |
| 48 | <?php endif; ?> |
| 49 | |
| 50 | <?php |
| 51 | |
| 52 | /** |
| 53 | * Hook for the woocommerce_email_order_details. |
| 54 | * |
| 55 | * @hooked WC_Emails::order_details() Shows the order details table. |
| 56 | * @hooked WC_Structured_Data::generate_order_data() Generates structured data. |
| 57 | * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. |
| 58 | * @since 2.5.0 |
| 59 | */ |
| 60 | do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); |
| 61 | |
| 62 | /** |
| 63 | * Hook for the woocommerce_email_order_meta. |
| 64 | * |
| 65 | * @hooked WC_Emails::order_meta() Shows order meta data. |
| 66 | */ |
| 67 | do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); |
| 68 | |
| 69 | /** |
| 70 | * Hook for woocommerce_email_customer_details. |
| 71 | * |
| 72 | * @hooked WC_Emails::customer_details() Shows customer details |
| 73 | * @hooked WC_Emails::email_address() Shows email address |
| 74 | */ |
| 75 | do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); |
| 76 | |
| 77 | /** |
| 78 | * Executes the email footer. |
| 79 | * |
| 80 | * @hooked WC_Emails::email_footer() Output the email footer |
| 81 | */ |
| 82 | do_action( 'woocommerce_email_footer', $email ); |
| 83 |