Yanıtlar:
Veritabanınızda aşağıdaki komutu çalıştırın;
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, bölgesinde doğrudan birkaç ülke için bölge sağlamadı.Çoğu ülke, Hindistan, Nepal gibi kendi bölge / devlete sahip değil ...
Adım1 :
İlk eflatun kaydet region list at directory_country_region table
: Yeni bölge ekleyin list on with respective country in this table
:
directory_country_region
Sorguyu çalıştır
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');
Adım 2 : Dil dil bölgesi adı için dizin_country_region_name de eklemeniz gerekir .
Hintli insanlar varsayılan olarak en_us (dil kodu)
Aşağıdaki kodu kullanarak:
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';
Birden fazla lahana varsa bu son ekleme içe aktarılır
Güncellenmiş durum listesi
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 directory_country_region
durum adlarını saklamak için tablo kullanıyor .
Aşağıdaki gibi veritabanında sorgu çalıştırarak tabloya durumlar ekleyebilirsiniz:
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');
yukarıdaki gibi ülke kodu, eyalet kodu ve eyalet adı ekleyerek başka bir ülkenin eyaletini de ekleyebilirsiniz.
3 Temmuz 2015 itibarıyla Güncellenmiş Devletler
Cpanel'e giriş yapmak veritabanına gidin ve directory_country_region
tabloya SQL
gidin ve sekmesine tıklayın ve aşağıdaki kodu ekleyin
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');
güncellenmiş ülke listesi için blogumda aynı cevabı kontrol edin
DEĞERLERE EKLEdirectory_country_region
(NULL, "IN", "Andaman ve Nicobar", "Andaman ve Nicobar"),( NULL , "IN" , "Andaman ve Nicobar" , "Andaman ve Nicobar" ), (NULL, "IN", "Andhra Pradesh", "Andhra Pradesh"),( NULL , "IN" , "Andhra Pradesh" , "Andhra Pradesh" ), (NULL, "IN", "Arunaçal Pradesh", "Arunaçal Pradeş"),( NULL , "IN" , "Arunaçal Pradesh" , "Arunaçal Pradeş" ), (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 ve Nagar Haveli", "Dadra ve Nagar Haveli"),( NULL , "IN" , "Dadra ve Nagar Haveli" , "Dadra ve Nagar Haveli" ), (NULL, "IN", "Daman ve Diu", "Daman ve Diu"),( NULL , "IN" , "Daman ve Diu" , "Daman ve Diu" ), (NULL, "IN", "Delhi", "Delhi"),( NULL , "IN" , "Delhi" , "Delhi" ), (NULL, "IN", "Goa", "Goa"),( NULL , "IN" , "Goa" , "Goa" ), (NULL, "IN", "Gujarat", "Gujarat"),( 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 ve Keşmir", "Jammu ve Keşmir"),( NULL , "IN" , "Jammu ve Keşmir" , "Jammu ve Keşmir" ), (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", "Pencap", "Pencap"),( NULL , "IN" , "Pencap" , "Pencap" ), (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", "Uttar Pradesh", "Uttar Pradesh"),( NULL , "IN" , "Uttar Pradesh" , "Uttar Pradesh" ), (NULL, "IN", "Uttaranchal", "Uttaranchal"),( NULL , "IN" , "Uttaranchal" , "Uttaranchal" ), (NULL, "IN", "Batı Bengal", "Batı Bengal");( NULL , "IN" , "Batı Bengal" , "Batı Bengal" );INSERT
directory_country_region_name
( , , )( , , )locale
region_id
name
'En_US', tmp.region_id, tmp.default_name FROM'u SEÇ 'en_US' , tmp . region_id , tmp . varsayılan_adı FROMdirectory_country_region
AS tmp NEREDE tmp.country_id = 'IN';. country_id = 'IN' ;