• Hello,

    I have a Japanese customer and his address is strangely formated on woocommerce orders.
    As I understand, there is a function that format the addresses for each country.
    For Japan, it’s this format:
    ‘JP’ => “{postcode}\n{state}{city}{address_1}\n{address_2}\n{company}\n{last_name} {first_name}\n{country}”,

    It looks strange to have the postcode on top, but why not. I’m sure you know what you’re doing better than me ??

    So the address is displayed as it supposed to be but there still is a issue.
    On the second line, there is no space between the fields. It’s impossible to read.
    With these data :
    – state = Tokyo
    – city = Shinjuku-ku
    – address_1 = 15F Shinjuku East Side Square

    It looks like that:
    TokyoShinjuku-ku15F Shinjuku East Side Square

    Can you do something about that?
    (all my plugins are up to date)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Looks like it is expecting the address to be entered in Japanese characters, rather than English.

    Hi,

    We send to Japan quite a bit and we use the following format (code to be placed in the your themes function.php).

    // Adjust address format for Japanese orders
    add_filter( 'woocommerce_localisation_address_formats' , 'custom_woocommerce_add_format' );
    
    function custom_woocommerce_add_format( $country ) {
      $country[ 'JP' ] = "{company}\n{last_name} {first_name}\n{address_1}\n{address_2}\n{city}\n{state} {postcode}\n{country}";
      return $country;
    }

    This is for international post inwards to Japan.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strange japanese format address’ is closed to new replies.