plain
3 years ago
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
4 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
5 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-footer.php
3 years ago
email-header.php
3 years ago
email-mobile-messaging.php
3 years ago
email-order-details.php
5 years ago
email-order-items.php
5 years ago
email-styles.php
3 years ago
email-addresses.php
55 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Email Addresses |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/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 | * @package WooCommerce\Templates\Emails |
| 15 | * @version 5.6.0 |
| 16 | */ |
| 17 | |
| 18 | if ( ! defined( 'ABSPATH' ) ) { |
| 19 | exit; |
| 20 | } |
| 21 | |
| 22 | $text_align = is_rtl() ? 'right' : 'left'; |
| 23 | $address = $order->get_formatted_billing_address(); |
| 24 | $shipping = $order->get_formatted_shipping_address(); |
| 25 | |
| 26 | ?><table id="addresses" cellspacing="0" cellpadding="0" style="width: 100%; vertical-align: top; margin-bottom: 40px; padding:0;" border="0"> |
| 27 | <tr> |
| 28 | <td style="text-align:<?php echo esc_attr( $text_align ); ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; border:0; padding:0;" valign="top" width="50%"> |
| 29 | <h2><?php esc_html_e( 'Billing address', 'woocommerce' ); ?></h2> |
| 30 | |
| 31 | <address class="address"> |
| 32 | <?php echo wp_kses_post( $address ? $address : esc_html__( 'N/A', 'woocommerce' ) ); ?> |
| 33 | <?php if ( $order->get_billing_phone() ) : ?> |
| 34 | <br/><?php echo wc_make_phone_clickable( $order->get_billing_phone() ); ?> |
| 35 | <?php endif; ?> |
| 36 | <?php if ( $order->get_billing_email() ) : ?> |
| 37 | <br/><?php echo esc_html( $order->get_billing_email() ); ?> |
| 38 | <?php endif; ?> |
| 39 | </address> |
| 40 | </td> |
| 41 | <?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && $shipping ) : ?> |
| 42 | <td style="text-align:<?php echo esc_attr( $text_align ); ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; padding:0;" valign="top" width="50%"> |
| 43 | <h2><?php esc_html_e( 'Shipping address', 'woocommerce' ); ?></h2> |
| 44 | |
| 45 | <address class="address"> |
| 46 | <?php echo wp_kses_post( $shipping ); ?> |
| 47 | <?php if ( $order->get_shipping_phone() ) : ?> |
| 48 | <br /><?php echo wc_make_phone_clickable( $order->get_shipping_phone() ); ?> |
| 49 | <?php endif; ?> |
| 50 | </address> |
| 51 | </td> |
| 52 | <?php endif; ?> |
| 53 | </tr> |
| 54 | </table> |
| 55 |