2012-08-14 18:05:45 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2015-11-03 13:53:50 +00:00
|
|
|
* Email Addresses
|
2012-08-14 18:05:45 +00:00
|
|
|
*
|
2015-11-03 13:31:20 +00:00
|
|
|
* This template can be overridden by copying it to yourtheme/woocommerce/emails/email-addresses.php.
|
2015-10-01 14:07:20 +00:00
|
|
|
*
|
2016-02-12 11:28:41 +00:00
|
|
|
* HOWEVER, on occasion WooCommerce will need to update template files and you
|
|
|
|
* (the theme developer) will need to copy the new files to your theme to
|
|
|
|
* maintain compatibility. We try to do this as little as possible, but it does
|
|
|
|
* happen. When this occurs the version of the template file will be bumped and
|
|
|
|
* the readme will list any important changes.
|
2015-10-01 14:07:20 +00:00
|
|
|
*
|
2016-07-19 10:30:31 +00:00
|
|
|
* @see https://docs.woocommerce.com/document/template-structure/
|
2012-08-14 18:05:45 +00:00
|
|
|
* @author WooThemes
|
|
|
|
* @package WooCommerce/Templates/Emails
|
2017-10-12 15:07:10 +00:00
|
|
|
* @version 3.2.1
|
2012-08-14 18:05:45 +00:00
|
|
|
*/
|
|
|
|
|
2014-05-28 19:22:17 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
2015-11-02 10:41:05 +00:00
|
|
|
exit;
|
2014-05-28 19:22:17 +00:00
|
|
|
}
|
2012-10-15 10:57:58 +00:00
|
|
|
|
2017-03-20 20:26:20 +00:00
|
|
|
$text_align = is_rtl() ? 'right' : 'left';
|
|
|
|
|
2017-07-11 13:52:30 +00:00
|
|
|
?><table id="addresses" cellspacing="0" cellpadding="0" style="width: 100%; vertical-align: top; margin-bottom: 40px; padding:0;" border="0">
|
2012-07-25 10:28:38 +00:00
|
|
|
<tr>
|
2017-07-11 13:52:30 +00:00
|
|
|
<td style="text-align:<?php echo $text_align; ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; border:0; padding:0;" valign="top" width="50%">
|
|
|
|
<h2><?php _e( 'Billing address', 'woocommerce' ); ?></h2>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2017-07-11 13:52:30 +00:00
|
|
|
<address class="address">
|
|
|
|
<?php echo ( $address = $order->get_formatted_billing_address() ) ? $address : __( 'N/A', 'woocommerce' ); ?>
|
|
|
|
<?php if ( $order->get_billing_phone() ) : ?>
|
2017-10-12 15:07:10 +00:00
|
|
|
<br/><?php echo esc_html( $order->get_billing_phone() ); ?>
|
|
|
|
<?php endif; ?>
|
2017-10-12 17:58:04 +00:00
|
|
|
<?php if ( $order->get_billing_email() ) : ?>
|
2017-10-12 15:07:10 +00:00
|
|
|
<p><?php echo esc_html( $order->get_billing_email() ); ?></p>
|
2017-07-11 13:52:30 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
</address>
|
2012-07-25 10:28:38 +00:00
|
|
|
</td>
|
2014-05-28 19:22:17 +00:00
|
|
|
<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && ( $shipping = $order->get_formatted_shipping_address() ) ) : ?>
|
2017-07-11 13:52:30 +00:00
|
|
|
<td style="text-align:<?php echo $text_align; ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; padding:0;" valign="top" width="50%">
|
|
|
|
<h2><?php _e( 'Shipping address', 'woocommerce' ); ?></h2>
|
2012-02-27 15:02:44 +00:00
|
|
|
|
2017-07-11 13:52:30 +00:00
|
|
|
<address class="address"><?php echo $shipping; ?></address>
|
2015-11-02 10:41:05 +00:00
|
|
|
</td>
|
2012-07-25 10:28:38 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
</tr>
|
2014-05-28 19:22:17 +00:00
|
|
|
</table>
|