将新国家/地区添加到Magento

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将新国家/地区添加到Magento相关的知识,希望对你有一定的参考价值。

1. Open lib/zend/locale/data/en.xml

2. Locate territories tag in this file

3. copy one of territory tags for the syntax and paste it within the territories tag

4. hard part here is to add country code in this file as might not be able to find a unique one, so it's upto you.

5. Save this file

6. Open table name directory_country

7. It has predefined syntax follow then same and create a new row and enter the same country code as entered in the en.xml file in 3 columns.

8. Refresh the site's cache.

9. Admin > Configuration > General this new country should be selected in list of allowed countries.

New country should be visible now.
  1. :)

以上是关于将新国家/地区添加到Magento的主要内容,如果未能解决你的问题,请参考以下文章

php 将新国家/地区添加到国家/地区列

php 将新国家/地区添加到国家/地区列

Magento:为国家/地区 magento 设置默认商店视图

Magento - 我如何通过 GeoIP 按国家/地区运行商店?

Magento:获取国家和地区集合

将新创建的工作簿保存到特定文件夹