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
0 Comments
Newest
Oldest
Inline Feedbacks
View all comments
aaaaaaaa
8 months ago

It doesn’t work

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

This website uses cookies so that we can provide you with the best user experience possible.

Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

By using our site, you acknowledge that you have read and understood our Privacy Policy and Terms & Conditions.