• Hi,

    I’d like to change the sequence of the address fields ZIP code and City.

    Now the City is printed first and then the ZIP code.
    I’d like to have first the ZIP code and then the City, both on one line.

    In the FAQ I found the answer of the following question:

    How can I change the address format of the recipient?

    But where exactly do I have add this code?
    The country code for my website is DE.

    Many thanks for your help.

    Cheers,
    Serge

    function custom_localisation_address_formats($formats) {
        $formats['LI'] = "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}";
        return $formats;
    }
    add_filter('woocommerce_localisation_address_formats', 'custom_localisation_address_formats');

    https://www.ads-software.com/extend/plugins/woocommerce-delivery-notes/

Viewing 1 replies (of 1 total)
  • Hi,

    I would like to know that too. I’be changed the address format for the Netherlands in class-wc-countries.php, but without any effect (not at the “Order Received” page anyway).

    Thanks,

    Jesse

Viewing 1 replies (of 1 total)
  • The topic ‘ZIP Code before City’ is closed to new replies.