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
9 years ago
email-downloads.php
8 years ago
email-order-details.php
8 years ago
email-order-items.php
8 years ago
email-addresses.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Email Addresses (plain) |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/email-addresses.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/Plain |
| 16 | * @version 3.2.1 |
| 17 | */ |
| 18 | |
| 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 20 | exit; |
| 21 | } |
| 22 | |
| 23 | echo "\n" . strtoupper( __( 'Billing address', 'woocommerce' ) ) . "\n\n"; |
| 24 | echo preg_replace( '#<br\s*/?>#i', "\n", $order->get_formatted_billing_address() ) . "\n"; |
| 25 | |
| 26 | if ( $order->get_billing_phone() ) { |
| 27 | echo $order->get_billing_phone() . "\n"; |
| 28 | } |
| 29 | |
| 30 | if ( $order->get_billing_email() ) { |
| 31 | echo $order->get_billing_email() . "\n"; |
| 32 | } |
| 33 | |
| 34 | if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && ( $shipping = $order->get_formatted_shipping_address() ) ) { |
| 35 | echo "\n" . strtoupper( __( 'Shipping address', 'woocommerce' ) ) . "\n\n"; |
| 36 | echo preg_replace( '#<br\s*/?>#i', "\n", $shipping ) . "\n"; |
| 37 | } |
| 38 |