답변:
데이터베이스에서 다음 명령을 실행하십시오.
INSERT INTO `directory_country_region` VALUES
(NULL , 'IN', 'AN','Andaman Nicobar'),
(NULL , 'IN', 'AP','Andhra Pradesh'),
(NULL , 'IN', 'AR','Arunachal Pradesh'),
(NULL , 'IN', 'AS','Assam'),
(NULL , 'IN', 'BH','Bihar'),
(NULL , 'IN', 'CH','Chandigarh'),
(NULL , 'IN', 'CG','Chhattisgarh'),
(NULL , 'IN', 'DN','Dadra Nagar Haveli'),
(NULL , 'IN', 'DD','Daman Diu'),
(NULL , 'IN', 'DL','Delhi'),
(NULL , 'IN', 'GA','Goa'),
(NULL , 'IN', 'GJ','Gujarat'),
(NULL , 'IN', 'HR','Haryana'),
(NULL , 'IN', 'HP','Himachal Pradesh'),
(NULL , 'IN', 'JK','Jammu Kashmir'),
(NULL , 'IN', 'JH','Jharkhand'),
(NULL , 'IN', 'KA','Karnataka'),
(NULL , 'IN', 'KL','Kerala'),
(NULL , 'IN', 'LD','Lakshadweep'),
(NULL , 'IN', 'MP','Madhya Pradesh'),
(NULL , 'IN', 'MH','Maharashtra'),
(NULL , 'IN', 'MN','Manipur'),
(NULL , 'IN', 'ML','Meghalaya'),
(NULL , 'IN', 'MZ','Mizoram'),
(NULL , 'IN', 'NL','Nagaland'),
(NULL , 'IN', 'OR','Odisha'),
(NULL , 'IN', 'PY','Pondicherry'),
(NULL , 'IN', 'PB','Punjab'),
(NULL , 'IN', 'RJ','Rajasthan'),
(NULL , 'IN', 'SK','Sikkim'),
(NULL , 'IN', 'TN','Tamil Nadu'),
(NULL , 'IN', 'TG','Telangana'),
(NULL , 'IN', 'TR','Tripura'),
(NULL , 'IN', 'UP','Uttar Pradesh'),
(NULL , 'IN', 'UT','Uttaranchal'),
(NULL , 'IN', 'WB','West Bengal');
Magento는 해당 지역에있는 몇몇 국가에 지역을 제공하지 않았습니다. 대부분의 국가에는 인도, 네팔 등과 같은 지역 / 주가 없습니다.
1 단계 :
첫 번째 magento 저장 region list at directory_country_region table
: 새 지역 삽입 list on with respective country in this table
:
directory_country_region
쿼리를 실행
INSERT INTO `directory_country_region` (`region_id`, `country_id`, `code`, `default_name`) VALUES
(NULL, 'IN', 'ANDRA', 'Andra Pradesh'),
(NULL, 'IN', 'ARUNA', 'Arunachal Pradesh'),
(NULL, 'IN', 'ASSAM', 'Assam'),
(NULL, 'IN', 'BIHAR', 'Bihar'),
(NULL, 'IN', 'CHAND', 'Chandigarh'),
(NULL, 'IN', 'CHHAT', 'Chhattisgarh'),
(NULL, 'IN', 'DADAR', 'Dadar and Nagar Haveli'),
(NULL, 'IN', 'DAMAN', 'Daman and Diu'),
(NULL, 'IN', 'DELHI', 'Delhi'),
(NULL, 'IN', 'GOA', 'Goa'),
(NULL, 'IN', 'GUJAR', 'Gujarat'),
(NULL, 'IN', 'HARYA', 'Haryana'),
(NULL, 'IN', 'HP', 'Himachal Pradesh'),
(NULL, 'IN', 'JK', 'Jammu and Kashmir'),
(NULL, 'IN', 'JHARK', 'Jharkhand'),
(NULL, 'IN', 'KARNA', 'Karnataka'),
(NULL, 'IN', 'KERAL', 'Kerala'),
(NULL, 'IN', 'LAKSH', 'Lakshadeep'),
(NULL, 'IN', 'MP', 'Madya Pradesh'),
(NULL, 'IN', 'MAHAR', 'Maharashtra'),
(NULL, 'IN', 'MANIP', 'Manipur'),
(NULL, 'IN', 'MEGHA', 'Meghalaya'),
(NULL, 'IN', 'MIZOR', 'Mizoram'),
(NULL, 'IN', 'NAGAL', 'Nagaland'),
(NULL, 'IN', 'ORISS', 'Orissa'),
(NULL, 'IN', 'PONDI', 'Pondicherry'),
(NULL, 'IN', 'PUNJA', 'Punjab'),
(NULL, 'IN', 'RAJAS', 'Rajasthan'),
(NULL, 'IN', 'SIKKI', 'Sikkim'),
(NULL, 'IN', 'TAMIL', 'Tamil Nadu'),
(NULL, 'IN', 'TAMIL', 'Tripura'),
(NULL, 'IN', 'UP', 'Uttar Pradesh'),
(NULL, 'IN', 'UTTAR', 'Uttaranchal'),
(NULL, 'IN', 'WB', 'West Bengal');
2 단계 : 또한 언어 희망 지역 이름에 directory_country_region_name을 삽입해야합니다 .
로 기본 인도 사람들이 기본 언어로 사용 ko 페이지 (언어 코드)입니다
아래 코드를 사용하여 :
INSERT INTO directory_country_region_name( locale, region_id, name )
SELECT 'en_US' AS "language", region_id, default_name
FROM `directory_country_region`
WHERE country_id = 'IN';
여러 언어가있는 경우이 마지막 삽입물을 가져옵니다.
업데이트 된 상태 목록
INSERT INTO `directory_country_region` VALUES
(NULL , 'IN', 'AN','Andaman and Nicobar'),
(NULL , 'IN', 'AP','Andhra Pradesh'),
(NULL , 'IN', 'AR','Arunachal Pradesh'),
(NULL , 'IN', 'AS','Assam'),
(NULL , 'IN', 'BH','Bihar'),
(NULL , 'IN', 'CH','Chandigarh'),
(NULL , 'IN', 'CT','Chhattisgarh'),
(NULL , 'IN', 'DN','Dadra and Nagar Haveli'),
(NULL , 'IN', 'DD','Daman and Diu'),
(NULL , 'IN', 'DL','Delhi'),
(NULL , 'IN', 'GA','Goa'),
(NULL , 'IN', 'GJ','Gujarat'),
(NULL , 'IN', 'HR','Haryana'),
(NULL , 'IN', 'HP','Himachal Pradesh'),
(NULL , 'IN', 'JK','Jammu Kashmir'),
(NULL , 'IN', 'JH','Jharkhand'),
(NULL , 'IN', 'KA','Karnataka'),
(NULL , 'IN', 'KL','Kerala'),
(NULL , 'IN', 'LD','Lakshadweep'),
(NULL , 'IN', 'MP','Madhya Pradesh'),
(NULL , 'IN', 'MH','Maharashtra'),
(NULL , 'IN', 'MN','Manipur'),
(NULL , 'IN', 'ML','Meghalaya'),
(NULL , 'IN', 'MZ','Mizoram'),
(NULL , 'IN', 'NL','Nagaland'),
(NULL , 'IN', 'OR','Odisha'),
(NULL , 'IN', 'PY','Pondicherry'),
(NULL , 'IN', 'PB','Punjab'),
(NULL , 'IN', 'RJ','Rajasthan'),
(NULL , 'IN', 'SK','Sikkim'),
(NULL , 'IN', 'TN','Tamil Nadu'),
(NULL , 'IN', 'TG','Telangana'),
(NULL , 'IN', 'TR','Tripura'),
(NULL , 'IN', 'UP','Uttar Pradesh'),
(NULL , 'IN', 'UT','Uttarakhand'),
(NULL , 'IN', 'WB','West Bengal');
마 젠토는 directory_country_region
테이블을 사용하여 상태 이름을 저장합니다.
다음과 같이 데이터베이스에서 쿼리를 실행하여 테이블에 상태를 추가 할 수 있습니다.
INSERT INTO `directory_country_region` (`region_id`, `country_id`,`code`, `default_name`) VALUES
(NULL, 'IN', 'ANDRA', 'Andra Pradesh'),
(NULL, 'IN', 'ARUNA', 'Arunachal Pradesh'),
(NULL, 'IN', 'ASSAM', 'Assam'),
(NULL, 'IN', 'BIHAR', 'Bihar'),
(NULL, 'IN', 'CHAND', 'Chandigarh'),
(NULL, 'IN', 'CHHAT', 'Chhattisgarh'),
(NULL, 'IN', 'DADAR', 'Dadar and Nagar Haveli'),
(NULL, 'IN', 'DAMAN', 'Daman and Diu'),
(NULL, 'IN', 'DELHI', 'Delhi'),
(NULL, 'IN', 'GOA', 'Goa'),
(NULL, 'IN', 'GUJAR', 'Gujarat'),
(NULL, 'IN', 'HARYA', 'Haryana'),
(NULL, 'IN', 'HP', 'Himachal Pradesh'),
(NULL, 'IN', 'JK', 'Jammu and Kashmir'),
(NULL, 'IN', 'JHARK', 'Jharkhand'),
(NULL, 'IN', 'KARNA', 'Karnataka'),
(NULL, 'IN', 'KERAL', 'Kerala'),
(NULL, 'IN', 'LAKSH', 'Lakshadeep'),
(NULL, 'IN', 'MP', 'Madya Pradesh'),
(NULL, 'IN', 'MAHAR', 'Maharashtra'),
(NULL, 'IN', 'MANIP', 'Manipur'),
(NULL, 'IN', 'MEGHA', 'Meghalaya'),
(NULL, 'IN', 'MIZOR', 'Mizoram'),
(NULL, 'IN', 'NAGAL', 'Nagaland'),
(NULL, 'IN', 'ORISS', 'Orissa'),
(NULL, 'IN', 'PONDI', 'Pondicherry'),
(NULL, 'IN', 'PUNJA', 'Punjab'),
(NULL, 'IN', 'RAJAS', 'Rajasthan'),
(NULL, 'IN', 'SIKKI', 'Sikkim'),
(NULL, 'IN', 'TAMIL', 'Tamil Nadu'),
(NULL, 'IN', 'TAMIL', 'Tripura'),
(NULL, 'IN', 'UP', 'Uttar Pradesh'),
(NULL, 'IN', 'UTTAR', 'Uttaranchal'),
(NULL, 'IN', 'WB', 'West Bengal');
위와 같이 국가 코드, 주 코드 및 주 이름을 추가하여 다른 국가의 주를 추가 할 수도 있습니다.
2015 년 7 월 3 일 현재 상태 업데이트
cpanel에 로그인하여 데이터베이스로 이동 한 다음 directory_country_region
테이블 로 이동 하여 SQL
탭을 클릭 하고 다음 코드를 추가하십시오.
INSERT INTO `directory_country_region` VALUES
(NULL , 'IN', 'AN','Andaman and Nicobar Islands'),
(NULL , 'IN', 'AP','Andhra Pradesh'),
(NULL , 'IN', 'AR','Arunachal Pradesh'),
(NULL , 'IN', 'AS','Assam'),
(NULL , 'IN', 'BR','Bihar'),
(NULL , 'IN', 'CH','Chandigarh'),
(NULL , 'IN', 'CT','Chhattisgarh'),
(NULL , 'IN', 'DN','Dadra and Nagar Haveli'),
(NULL , 'IN', 'DD','Daman and Diu'),
(NULL , 'IN', 'DL','Delhi'),
(NULL , 'IN', 'GA','Goa'),
(NULL , 'IN', 'GJ','Gujarat'),
(NULL , 'IN', 'HR','Haryana'),
(NULL , 'IN', 'HP','Himachal Pradesh'),
(NULL , 'IN', 'JK','Jammu and Kashmir'),
(NULL , 'IN', 'JH','Jharkhand'),
(NULL , 'IN', 'KA','Karnataka'),
(NULL , 'IN', 'KL','Kerala'),
(NULL , 'IN', 'LD','Lakshadweep'),
(NULL , 'IN', 'MP','Madhya Pradesh'),
(NULL , 'IN', 'MH','Maharashtra'),
(NULL , 'IN', 'MN','Manipur'),
(NULL , 'IN', 'ML','Meghalaya'),
(NULL , 'IN', 'MZ','Mizoram'),
(NULL , 'IN', 'NL','Nagaland'),
(NULL , 'IN', 'OR','Odisha'),
(NULL , 'IN', 'PY','Puducherry'),
(NULL , 'IN', 'PB','Punjab'),
(NULL , 'IN', 'RJ','Rajasthan'),
(NULL , 'IN', 'SK','Sikkim'),
(NULL , 'IN', 'TN','Tamil Nadu'),
(NULL , 'IN', 'TG','Telangana'),
(NULL , 'IN', 'TR','Tripura'),
(NULL , 'IN', 'UP','Uttar Pradesh'),
(NULL , 'IN', 'UT','Uttarakhand'),
(NULL , 'IN', 'WB','West Bengal');
업데이트 된 국가 목록은 내 블로그에서 동일한 답변을 확인하십시오.
값에 삽입directory_country_region
(NULL, "IN", "Andaman 및 Nicobar", "Andaman 및 Nicobar"),( NULL , "IN" , "Andaman and Nicobar" , "Andaman and Nicobar" ), (NULL, "IN", "Andhra Pradesh", "Andhra Pradesh"),( NULL , "IN" , "Andhra Pradesh" , "Andhra Pradesh" ), (NULL, "IN", "Arunachal Pradesh", "Arunachal Pradesh"),( NULL , "IN" , "Arunachal Pradesh" , "Arunachal Pradesh" ), (NULL, "IN", "Assam", "Assam"),( NULL , "IN" , "Assam" , "Assam" ), (NULL, "IN", "Bihar", "Bihar"),( NULL , "IN" , "Bihar" , "Bihar" ), (NULL, "IN", "Chandigarh", "Chandigarh"),( NULL , "IN" , "Chandigarh" , "Chandigarh" ), (NULL, "IN", "Chhattisgarh", "Chhattisgarh"),( NULL , "IN" , "Chhattisgarh" , "Chhattisgarh" ), (NULL, "IN", "Dadra and Nagar Haveli", "Dadra and Nagar Haveli"),( NULL , "IN" , "Dadra and Nagar Haveli" , "Dadra and Nagar Haveli" ), (NULL, "IN", "Daman and Diu", "Daman and Diu"),( NULL , "IN" , "Daman and Diu" , "Daman and Diu" ), (NULL, "IN", "Delhi", "Delhi"),( NULL , "IN" , "Delhi" , "Delhi" ), (NULL, "IN", "Goa", "Goa"),( NULL , "IN" , "Goa" , "Goa" ), (NULL, "IN", "구자라트", "구자라트"),( NULL , "IN" , "Gujarat" , "Gujarat" ), (NULL, "IN", "Haryana", "Haryana"),( NULL , "IN" , "Haryana" , "Haryana" ), (NULL, "IN", "Himachal Pradesh", "Himachal Pradesh"),( NULL , "IN" , "Himachal Pradesh" , "Himachal Pradesh" ), (NULL, "IN", "Jammu and Kashmir", "Jammu and Kashmir"),( NULL , "IN" , "Jammu and Kashmir" , "Jammu and Kashmir" ), (NULL, "IN", "Jharkhand", "Jharkhand"),( NULL , "IN" , "Jharkhand" , "Jharkhand" ), (NULL, "IN", "Karnataka", "Karnataka"),( NULL , "IN" , "Karnataka" , "Karnataka" ), (NULL, "IN", "Kerala", "Kerala"),( NULL , "IN" , "Kerala" , "Kerala" ), (NULL, "IN", "Lakshadweep", "Lakshadweep"),( NULL , "IN" , "Lakshadweep" , "Lakshadweep" ), (NULL, "IN", "Madhya Pradesh", "Madhya Pradesh"),( NULL , "IN" , "Madhya Pradesh" , "Madhya Pradesh" ), (NULL, "IN", "Maharashtra", "Maharashtra"),( NULL , "IN" , "Maharashtra" , "Maharashtra" ), (NULL, "IN", "Manipur", "Manipur"),( NULL , "IN" , "Manipur" , "Manipur" ), (NULL, "IN", "Meghalaya", "Meghalaya"),( NULL , "IN" , "Meghalaya" , "Meghalaya" ), (NULL, "IN", "Mizoram", "Mizoram"),( NULL , "IN" , "Mizoram" , "Mizoram" ), (NULL, "IN", "Nagaland", "Nagaland"),( NULL , "IN" , "Nagaland" , "Nagaland" ), (NULL, "IN", "Orissa", "Orissa"),( NULL , "IN" , "Orissa" , "Orissa" ), (NULL, "IN", "Pondicherry", "Pondicherry"),( NULL , "IN" , "Pondicherry" , "Pondicherry" ), (NULL, "IN", "Punjab", "Punjab"),( NULL , "IN" , "Punjab" , "Punjab" ), (NULL, "IN", "Rajasthan", "Rajasthan"),( NULL , "IN" , "Rajasthan" , "Rajasthan" ), (NULL, "IN", "Sikkim", "Sikkim"),( NULL , "IN" , "Sikkim" , "Sikkim" ), (NULL, "IN", "Tamil Nadu", "Tamil Nadu"),( NULL , "IN" , "Tamil Nadu" , "Tamil Nadu" ), (NULL, "IN", "Tripura", "Tripura"),( NULL , "IN" , "Tripura" , "Tripura" ), (NULL, "IN", "우타르 프라데시", "우타르 프라데시"),( NULL , "IN" , "Uttar Pradesh" , "Uttar Pradesh" ), (NULL, "IN", "Uttaranchal", "Uttaranchal"),( NULL , "IN" , "Uttaranchal" , "Uttaranchal" ), (NULL, "IN", "West Bengal", "West Bengal");( NULL , "IN" , "West Bengal" , "West Bengal" );INSERT INTO
directory_country_region_name
( , , )( , , )locale
region_id
name
'en_US', tmp.region_id, tmp.default_name FROM을 선택하십시오. 'en_US' , tmp . region_id , tmp . default_name FROMdirectory_country_region
어디서나 tmp.country_id = 'IN';. country_id = 'IN' ;