rachael-portier
8/16/2019 - 6:00 PM

Display Shipping Address for Shipped to Same & Different Address

<!-- if different billing and shipping -->
    <?php if ($order->get_billing_address_1() != $order->get_shipping_address_1()) : ?>

        <column>
			<h4>Shipping Address</h4>
			<address>
				<?php echo wp_kses_post( $order->get_formatted_shipping_address( __( 'N/A', 'woocommerce' ) ) ); ?>
			</address>
		</column><!-- /.col-2 -->
    
    <?php else : ?>
    
    <!-- if same billing and shipping -->
        <column>
        <h4>Shipping Address</h4>

	       <address>
		  <?php echo wp_kses_post( $order->get_formatted_billing_address( __( 'N/A', 'woocommerce' ) ) ); ?>
            </address>
            
            
            
            
            
            
            
            
            
  <!-- FOR EMAILS > EMAIL-ADDRESSES.PHP -->      
   <!-- around line 42, second TD for "shipping" address -->
            <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%">
				<h2><?php esc_html_e( 'shipped to', 'woocommerce' ); ?></h2>

				<address class="address">
                    
                    
                    <?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && $shipping ) : ?>
                    <?php echo wp_kses_post( $shipping ); ?>
                    
                    <?php else : ?>
                
                    <?php echo wp_kses_post( $address ? $address : esc_html__( 'N/A', 'woocommerce' ) ); ?>
				<?php if ( $order->get_billing_phone() ) : ?>
					<br/><?php echo esc_html( $order->get_billing_phone() ); ?>
				<?php endif; ?>
				<?php if ( $order->get_billing_email() ) : ?>
					<br/><?php echo esc_html( $order->get_billing_email() ); ?>
				<?php endif; ?>
                
                </address>
			</td>
    
    
        </column>