Title: ZIP Code before City
Last modified: August 21, 2016

---

# ZIP Code before City

 *  [timit](https://wordpress.org/support/users/timit/)
 * (@timit)
 * [13 years ago](https://wordpress.org/support/topic/zip-code-before-city/)
 * 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');
       ```
   
 * [http://wordpress.org/extend/plugins/woocommerce-delivery-notes/](http://wordpress.org/extend/plugins/woocommerce-delivery-notes/)

Viewing 1 replies (of 1 total)

 *  [Tribus](https://wordpress.org/support/users/tribus/)
 * (@tribus)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/zip-code-before-city/#post-3726785)
 * 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.

 * ![](https://ps.w.org/woocommerce-delivery-notes/assets/icon-256x256.jpg?rev=2829362)
 * [Print Invoice & Delivery Notes for WooCommerce](https://wordpress.org/plugins/woocommerce-delivery-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-delivery-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-delivery-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-delivery-notes/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tribus](https://wordpress.org/support/users/tribus/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/zip-code-before-city/#post-3726785)
 * Status: not resolved