Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I made a patch adding support for Japanese addresses.
Comment | File | Size | Author |
---|---|---|---|
#13 | i1107484-13.patch | 2.65 KB | attiks |
#12 | i1107484-12.patch | 2.57 KB | attiks |
#11 | amazon-address.png | 9.73 KB | shi99 |
#5 | address_form_eccube.png | 17.27 KB | pineray |
#4 | address_form_yahooshopping.png | 63.94 KB | pineray |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedHi there. I would like some feedback on how to properly support Japan addresses.
Do Japanese users expect to input the addresses from the "largest geographical area to the smallest one", as documented by the UPU?
Could you provide some annotated screenshots of the typical address input form a Japanese user would expect?
The
-reloaded
branch has been merged, so this is going to need to be reimplemented.Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedComment #3
pineray CreditAttribution: pineray commentedAttached the screen shot.
It is the address input form of Rakuten the largest online shopping mall in Japan, and the typical address input form.
Comment #4
pineray CreditAttribution: pineray commentedAttached another one.
It is the address input form of 'Yahoo! shopping' which is the second largest online shopping mall in Japan.
Comment #5
pineray CreditAttribution: pineray commentedThe address input form of EC-CUBE.
EC-CUBE is open source e-Commerse software and most popular in Japan.
Comment #6
Gastonia CreditAttribution: Gastonia commentedI am interested in this as well. Can you elaborate more please on what the patch does?
Comment #7
rszrama CreditAttribution: rszrama commentedComment #8
attiks CreditAttribution: attiks commentedAccording to my Japanese client the right order is
zip =郵便番号
state = 都道府県
city = 市町村
address 1 = 番地
address 2 = ビル・マンション名
Comment #9
attiks CreditAttribution: attiks commentedComment #10
attiks CreditAttribution: attiks commentedComment #11
shi99 CreditAttribution: shi99 commentedThe patch in comment #9 follows the correct layout for a Japanese address.
I have added to the patch to include the Prefectures that are used in Japan.
The images attached shows an example of how Japanese addresses are structured. This was taken from the Japanese Amazon website.
Find attached the patch and example image.
Comment #12
attiks CreditAttribution: attiks commentedComment #13
attiks CreditAttribution: attiks commentedNew patch so it outputs the name instead of the id
Comment #14
shi99 CreditAttribution: shi99 commentedPatch in #13 works for me.
Gives the Japanese prefectures and outputs the name instead of the id.
Comment #15
Bensbury CreditAttribution: Bensbury commentedPatch #13 is good.
Comment #16
shi99 CreditAttribution: shi99 commentedWhat is required for this patch to be commited to the module?
Is more testing required or are the approval comments above enough?
Comment #17
sdelbosc CreditAttribution: sdelbosc commentedMaybe using a new address formatter like 'Inverted address units' which would just change the weights of the elements would make sense here.
In my case, the client wants this inverted order at least for Japan and China.
Comment #18
shi99 CreditAttribution: shi99 commented"Inverted address units" formatter may solve the weight issue, but the patch in #13 also adds the Japanese prefectures so they are available for the user to choose from a dropdown. So I think the patch would be a useful addition to the module.
Comment #19
bojanz CreditAttribution: bojanz commentedCommitted, thank you!