WordPress.org

Forums

WooCommerce Print Invoice & Delivery Note
ZIP Code before City (2 posts)

  1. timit
    Member
    Posted 1 year ago #

    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/

  2. Tribus
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce Print Invoice & Delivery Note
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.