Respostas:
Execute o seguinte comando no seu banco de dados;
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');
O Magento não forneceu regiões para alguns países em sua região.
Etapa 1 :
Primeiro salvamento do magento region list at directory_country_region table
: Então insira uma nova região list on with respective country in this table
:
directory_country_region
Execute a consulta
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');
Etapa 2 : você também precisa inserir directory_country_region_name para o nome da região de idioma desejado .
como povo indígena padrão é usar en_us (código do idioma) como idioma padrão
Usando o código abaixo:
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';
Esta última inserção é importada se você tiver vários idiomas
Lista de estado atualizada
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');
Magento está usando a directory_country_region
tabela para armazenar os nomes dos estados.
Você pode adicionar estados à tabela executando a consulta no banco de dados da seguinte maneira:
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');
você também pode adicionar o estado de outro país adicionando o código do país, o código do estado e o nome do estado, conforme descrito acima.
Estados atualizados a partir de 3 de julho de 2015
Entre no cpanel, acesse o banco de dados e, em seguida, vá para a directory_country_region
tabela e seus cliques na SQL
guia e adicione o seguinte código
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');
para obter uma lista atualizada de países, verifique a mesma resposta no meu blog
INSERIR EMdirectory_country_region
VALORES ( NULL , "IN" , "Andaman e Nicobar" , "Andaman e Nicobar" ), ( NULL , "IN" , "Andhra Pradesh" , "Andhra Pradesh" ), ( NULL , "IN" , "Arunachal Pradesh" , "Arunachal Pradesh" ), , "Chandigarh" ), ( NULL , "IN" , "Chhattisgarh" , "Chhattisgarh" ),( NULL , "IN" , ( NULL , " IN " , " Assam " , " Assam " ), ( NULL , " IN " ,"Bihar" , "Bihar" ), ( NULL , "IN" , "Chandigarh" "Dadra e Nagar Haveli" , "Dadra e Nagar Haveli " ), ( NULL , " IN " , " Daman e Diu " , " Daman e Diu " ), ( NULL , " IN " , " Delhi " , "Delhi " ), ( NULL , " IN " , "Goa" , "Goa" ), ( NULL , "IN" , "Gujarat" , ), ( NULL , " IN " , " Jammu e Caxemira " , " Jammu e Caxemira " ), ( NULL ,"IN" , "Jharkhand" , "Jharkhand" "Gujarat" ), ( NULL , "IN" , "Haryana" , "Haryana" ), ( NULL , "IN" , "Himachal Pradesh" , "Himachal Pradesh" ), ( NULL , "IN" , ), ( NULL , "IN" , "Lakshadweep" , "Lakshadweep" ),( NULL , "IN" , , "Karnataka" , "Karnataka" ), ( NULL , "IN" , "Kerala" , "Kerala" "Madhya Pradesh" , "Madhya Pradesh" ), ( NULL , "IN" , "Maharashtra" , "Maharashtra " ), ( NULL , " IN " "Manipur" , "Manipur" ), ( NULL , "IN" , "Meghalaya" , "Meghalaya" ), ( NULL , "IN" , "Mizoram" , "Mizoram" ), ( NULL , "IN" , " Nagaland " , " Nagaland " ), ( NULL , " IN " , " Orissa " , " Orissa " ), ( NULL , " IN " ,"Pondicherry" , "Pondicherry" ), ( NULL , "IN" , "Punjab" , "Punjab" ), ( NULL , "IN" , "Rajasthan" , "Rajasthan" ), ( NULL , "IN" , "Sikkim" , "Sikkim" ), ( NULL , "IN" ,( NULL , "IN" , "Tamil Nadu" , "Tamil Nadu" ), ( NULL , "IN" , "Tripura" , "Tripura" ), "Uttar Pradesh" , "Uttar Pradesh" ), , "Uttaranchal" , "Uttaranchal" ), ( NULL , "IN" , "Bengala Ocidental" , "Bengala Ocidental" ); ( NULL , "IN"INSERIR EM ( ,
directory_country_region_name
locale
region_id
, ) SELECIONAR 'en_US' , tmp . region_id , tmp . default_name FROM AS tmp WHERE tmp . country_id = 'IN' ;name
directory_country_region