How do you show just shipping address in a custom email?
-
Hi there, I have customized the admin-new-order email and positioned the shipping address so we can print it out and fold into a delivery envelope.
I’d like to use this code from email-addresses.php
<h3><?php _e( 'Billing address', 'woocommerce' ); ?></h3> <p><?php echo $order->get_formatted_billing_address(); ?></p> </td> <?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && ( $shipping = $order->get_formatted_shipping_address() ) ) : ?> <td valign="top" width="50%"> <h3><?php _e( 'Shipping address', 'woocommerce' ); ?></h3> <p><?php echo $shipping; ?></p>
Is there a way of using php to say, if shipping address is present, just display shipping address rather then having both billing and shipping addresses displayed?
Thanks for any help it is appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How do you show just shipping address in a custom email?’ is closed to new replies.