2012-09-17 00:53:17 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Email Addresses (plain)
|
|
|
|
*
|
|
|
|
* @author WooThemes
|
|
|
|
* @package WooCommerce/Templates/Emails/Plain
|
2014-04-08 15:28:27 +00:00
|
|
|
* @version 2.2.0
|
2012-09-17 00:53:17 +00:00
|
|
|
*/
|
|
|
|
|
2014-05-28 19:22:17 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
2015-02-19 13:57:20 +00:00
|
|
|
exit;
|
2014-05-28 19:22:17 +00:00
|
|
|
}
|
2012-10-15 10:57:58 +00:00
|
|
|
|
2015-02-19 13:57:20 +00:00
|
|
|
echo "\n" . strtoupper( __( 'Billing address', 'woocommerce' ) ) . "\n\n";
|
|
|
|
echo preg_replace( '#<br\s*/?>#i', "\n", $order->get_formatted_billing_address() ) . "\n";
|
2012-09-17 00:53:17 +00:00
|
|
|
|
2014-05-28 19:22:17 +00:00
|
|
|
if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && ( $shipping = $order->get_formatted_shipping_address() ) ) {
|
2015-02-19 13:57:20 +00:00
|
|
|
echo "\n" . strtoupper( __( 'Shipping address', 'woocommerce' ) ) . "\n\n";
|
|
|
|
echo preg_replace( '#<br\s*/?>#i', "\n\t", $shipping ) . "\n";
|
2014-05-28 19:22:17 +00:00
|
|
|
}
|