• Resolved mappel

    (@mappel)


    Hi.
    I’m living in germany and I’m testing my woocommerce page.
    I ran into this issue:
    When I fill out the Billing section on my checkout page Germany is automatically added to “Country”. (before I even have filled out the address and city field!)
    1) This is set up via some kind of IP or Geo detection? (I have no GeoIp plugin installed)
    2) When placing the order and leaving the country field untouched (because it already shows “Germany” the name of the billing country (in my case: Germany) won’t show up on the following order received page and neither on the my-account billing information page.
    Why?
    I tried to enter germany manually into the country field but that doesn’t change it / that won’t add it.
    It’s kind of important for my invoice because of the EU VAT laws.
    Do you have an explanation for this?
    I couldn’t test my page from another location/country because I have no VPN installed…
    I also didn’t set up a Default Billing Country, which you can do in the functions.php
    Help is very much appreciated. Thanks!
    Warm Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • AJ a11n

    (@amandasjackson)

    Hi there,

    The country does not show if the base country and billing or shipping country are same. The filter names indicates that by default country display is off when the customer is in the same country as the store.

    To be consistent with the filter name if you want to force the country display then this can be used:

    add_filter( 'woocommerce_formatted_address_force_country_display', '__return_true' );

    Here’s the result on the Order Received page:


    Link to image: https://cld.wthms.co/tOO6pH

    AJ a11n

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Country (Billing) not showing up in the order received / thank you page’ is closed to new replies.