Plugin Contributor
Ewout
(@pomegranate)
Hi! The address printed in the PDF invoice is formatted by WooCommerce itself. There are plugins that can hook into this, but ours doesn’t make any modifications. The fact that the country is also missing on the order-received page is an indication that something is doing this globally. There are a few possible causes:
- This could be a plugin that modifies the address format (for example plugins that modify the checkout, adding or removing fields)
- WooCommerce has a function that will hide the country by default if it is equal to the shop base country. Is this perhaps the case for these orders too?
- There’s a variety of filters that can be used to affect the formatted order addresses. If one has been implemented in your theme functions.php that may inadvertedly removing the country
If it’s number 2, you can resolve this with a filter:
add_filter('woocommerce_formatted_address_force_country_display', '__return_true');
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
Let us know if that helps!