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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xy2’s picture

Title: Support Russian adresses » [PATCH] Support Russian adresses
Version: 7.x-1.0-alpha2 » 7.x-1.x-dev
FileSize
6.53 KB

Adding Russian regions and form.

I didn't include premise as far as in Soviet Russia premise includes you street 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.

xy2’s picture

FileSize
6.53 KB

Updated patch: administrative regions sorted by local name, not by code.

v.zhakov’s picture

Good 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.

v.zhakov’s picture

I 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!

Damien Tournoud’s picture

Title: [PATCH] Support Russian adresses » Support Russian adresses
Category: support » feature

The -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?

xy2’s picture

In 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.

mefisto75’s picture

Category: feature » support
FileSize
26.23 KB

@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.

mefisto75’s picture

Couldn'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.

zarudnyi’s picture

aa2007’s picture

FileSize
3.56 KB

The 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.

VSZ’s picture

FileSize
3.27 KB

Attached 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

j0rd’s picture

Issue tags: +pluggable regions

This 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.

rszrama’s picture

Component: Code » Address formats
Category: support » feature
bojanz’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

Closing as a duplicate of #1665788: Add administrative areas for Russian regions which has the most recent patch.

bojanz’s picture

Status: Closed (duplicate) » Active

Actually, 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...

bojanz’s picture

Status: Active » Fixed
FileSize
33.65 KB

The latest commits fixed the field ordering for a number of countries, including Russia and Ukraine. See screenshot.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.