Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins
Days
Hours
Minutes
Seconds

How to Display Shipping Address in WooCommerce Email Notifications?

A single-line code snippet is useful for maintaining clarity and completeness in email communications. By using the woocommerce_order_needs_shipping_address filter, it overrides the default behavior to always include the shipping address.

add_filter( 'woocommerce_order_needs_shipping_address', '__return_true' );

Output

The output shows that the shipping address is also displayed in the email notification. This way customers and store owners can have access to essential shipping information in all email notifications.

How to Display Shipping Address in WooCommerce Email Notifications?

This is what the standard email notification looks like with only having the Billing address.

How to Display Shipping Address in WooCommerce Email Notifications?

For ‘local pickups’ there is no need for a shipping address in email notification. In such cases, you can hide shipping address based on shipping method in email notifications.

Browse more in: Code Snippets, WooCommerce How Tos, WooCommerce Tutorials

Share It:

Subscribe
Notify of
2 Comments
Newest
Oldest
Inline Feedbacks
View all comments
aaaaaaaa
2 months ago

It doesn’t work

2
0
Would love your thoughts, please comment.x
()
x