Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

It seems in recent versions of WooCommerce that the base country does not show on the order screens.

Ex. we have 2 orders, one being from Australia and one from the United States. In the WooCommerce --> Orders screen the Australian order doesn't say Australia at the end of the order billing and shipping addresses (because our base location is Australia). The international orders do show the country though.

How can that be fixed so that the base country is being shown in the formatted addresses still?

share|improve this question
add comment

1 Answer

Looking through the code it looks like this is intended functionality to reduce the clutter in the admin screen. Here's a little snippet so you can override that functionality.

add_filter( 'woocommerce_formatted_address_force_country_display', '__return_true' );

This only works in the bleeding edge version of WooCommerce - it should be included in 2.0.14

Gist permalink - https://gist.github.com/BFTrick/6241267

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.