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.
Hello!
I install commerce and adress field.
I think, Russian adresses hasn't good adress form.
For example, I need "City" field after full name.
Additionally, It may need region list (such it has on USA, states).
Where I may read documentation about it?
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#16 | russia-format.png | 33.65 KB | bojanz |
#11 | addressfield_ru.tgz | 3.27 KB | VSZ |
#10 | addressfield-russian.test | 3.56 KB | aa2007 |
#7 | russia.png | 26.23 KB | mefisto75 |
#4 | commerce-checkout-review-ru.png | 47.3 KB | v.zhakov |
Comments
Comment #1
xy2 CreditAttribution: xy2 commentedAdding Russian regions and form.
I didn't include premise as far as
in Soviet Russia premise includes youstreet address is usually written in one line, and premise name could vary a much (too much).Also, post code made not mandatory as nobody considers Russian Post as a reliable service provider. Using it for goods delivery is very risky. So, most of people just do not remember their post code.
Comment #2
xy2 CreditAttribution: xy2 commentedUpdated patch: administrative regions sorted by local name, not by code.
Comment #3
v.zhakov CreditAttribution: v.zhakov commentedGood work! Thank you! It works for me in checkout form.
One question..
May be include t() for Region's name?
For example, 'AD' => t('Adygei')?
May be I have a mistake..., but in US form has t() function.
Comment #4
v.zhakov CreditAttribution: v.zhakov commentedI think, region field must be after Country select.
After that must be City field.
After street and last full name.
And I see region's code on reveiw page. Is that right?
See screenshot below.
Thanks!
Comment #5
Damien Tournoud CreditAttribution: Damien Tournoud commentedThe
-reloaded
branch has been merged. It comes with reasonable defaults for most countries in the world, including Russia. More detailed support (including the province drop-down) can be implemented separately.Is it more natural to have the postal code *after* the state in Russian addresses?
Comment #6
xy2 CreditAttribution: xy2 commentedIn short, it's not natural. Postal code is usually written first in postal address.
But from e-commerce point of view, for russian stores delivery address is not always postal as far as nobody relies on russian post service. In-country delivery (including small packages) is usually done by courier services, which do not need postal code. For this and other reasons, most people just do not remember their postal code. Asking for it first may cause abandoned carts.
Non-russian stores do not have other option than russian post, so not trying to ask for postal code is even more bad.
Comment #7
mefisto75 CreditAttribution: mefisto75 commented@Damien, unfortunately default for Russia now has only address 1 and 2, postal code and city, no province name - and it took me several page reloads to have it display, it was getting State field initially.
Should we apply patch at #2 for each new version of the module or this patch can be added to the module itself?
Attached.
Comment #8
mefisto75 CreditAttribution: mefisto75 commentedCouldn't apply the patch at #2. Function addressfield_default_mapping is not there anymore (?)
Damien, do you think it could be possible to have separate files per country similar to location module's structure instead of having a few countries with full province names (what was the selection criteria?)?
Separate implementaion is quite a task for non programmers like me versus just copy pasting province names and changing country names.
Thank you.
Comment #9
zarudnyi CreditAttribution: zarudnyi commentedWhat we talk about?
http://www.artlebedev.com/mandership/163/
http://www.upu.int/fileadmin/documentsFiles/activities/addressingUnit/ru...
Comment #10
aa2007 CreditAttribution: aa2007 commentedThe latest version of the module structure has changed little. And as we know now there is no folder 'includes' the templates for the country. I changed the code a little bit of ru2.patch and added it to '/ plugins / format / address.inc'. But as I understood, it is possible without changing the basic plug-in module, write your for your country, by analogy with the fact that in your 'example'. I tried to make such a plugin, but I somehow did not work. Attach my file. Take a look, please.
Comment #11
VSZ CreditAttribution: VSZ commentedAttached is the module to support Russian regions.
English names come from here http://en.wikipedia.org/wiki/ISO_3166-2:RU
and Russian translations from here http://ru.wikipedia.org/wiki/ISO_3166-2:RU
Comment #12
j0rd CreditAttribution: j0rd commentedThis is a duplicate of
#1829900: [meta] Address Field 2.x needs pluggable administrative areas and an actual API
If you think so to, please close your ticket.
Comment #13
rszrama CreditAttribution: rszrama commentedComment #14
bojanz CreditAttribution: bojanz commentedClosing as a duplicate of #1665788: Add administrative areas for Russian regions which has the most recent patch.
Comment #15
bojanz CreditAttribution: bojanz commentedActually, this is about field ordering as well.
We need to make sure the field ordering matches the order Google defines for Android:
https://github.com/commerceguys/addressing/blob/master/resources/address...
Comment #16
bojanz CreditAttribution: bojanz commentedThe latest commits fixed the field ordering for a number of countries, including Russia and Ukraine. See screenshot.