地址簿

不同国家,有不同的地址分法。

In the United States that would be the state.

In Brazil it would be the state and the municipality.

In China it would be the province, the prefecture-level city, and the county.

地址模块使用了Commerce Guys addressing库, 分支数据(Subdivision)一般是3级。

地址 - 图1

如果你好奇这些地址分支数据都存在哪里的,可以看commerceguys/addressing/resources/subdivision,它是个json格式存储。

默认国家设置

导航到`/admin/config/people/profile-types/manage/customer/fields/profile.customer.address

地址 - 图2

地址实体

设置地址字段

地址字段通常由三种特性:

地址 - 图3