From a36a44bad5453739ad3190e363a5ce4a9158e16f Mon Sep 17 00:00:00 2001 From: El Mehdi Mouhajer Date: Sat, 18 Sep 2021 03:05:46 +0100 Subject: [PATCH 1/3] =?UTF-8?q?add=20MA=20support=20&=20citys=20of=20the?= =?UTF-8?q?=20folowing=20states=20:=20Casablanca-Settat,=20B=C3=A9ni=20Mel?= =?UTF-8?q?lal-Kh=C3=A9nifra,=20Dr=C3=A2a-Tafilalet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/places/MA.php | 77 +++++++++++++++++++++++++++++++++++++++++ trunk/states/MA.php | 42 ++++++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 templates/places/MA.php create mode 100644 trunk/states/MA.php diff --git a/templates/places/MA.php b/templates/places/MA.php new file mode 100644 index 0000000..fe7cefa --- /dev/null +++ b/templates/places/MA.php @@ -0,0 +1,77 @@ + | https://yourwebsite.com + * @version 1.0.0 + * @license http://www.gnu.org/licenses/gpl-2.0.html + */ + +global $places; + +// Replace 'XX' code for your Country Code. E.g. 'NG' for Nigeria, 'CO' for Colombia, 'VE' for Venezuela, etc. +// Please refer to WooCommerce country codes : https://github.com/woocommerce/woocommerce/blob/master/i18n/countries.php +$places['MA'] = array( + // Replace 'AA' code with the code of the State you want to mapping this places + '06' => array( + // Add all the places of this State, one place per line + 'Casablanca', + 'Mohammedia', + 'El Jadid', + 'Settat', + 'Barrechid', + 'Bouskoura', + 'Moulay Abdallah', + 'Aïn Harrouda', + 'Benslimane', + 'Sidi Bennour', + 'Beni Yakhlef', + 'Ad Darwa', + 'Azemmour', + 'Bouznika', + 'Mediouna', + 'Bou Ahmed', + 'Tit Mellil', + 'Douar Oulad Hssine', + 'Sidi Smai’il', + 'Oulad Hammou', + 'Oulad Said', + 'Douar Olad. Salem', + 'Douar Ouled Ayad', + 'Zawyat an Nwaçer' + ), + '05' => array( + 'Kouribga', + 'Béni Mellal', + 'Khénifra', + 'Al Fqih Ben Çalah', + 'Oued Zem', + 'Qasbat Tadla', + 'Boujad', + 'Mrirt', + 'Aziylal', + 'Aguelmous', + 'Oulad Zemam', + 'Dar Ould Zidouh', + 'Demnat', + 'Douar Oulad Aj-jabri', + 'Oulad Yaïch', + 'Zawyat ech Cheïkh', + 'Ouaoula', + 'Ayt Mohamed' + ), + '08' => array( + 'Errachidia', + 'Warzat', + 'Midalt', + 'Tineghir', + 'Zagora', + 'Arfoud', + 'Skoura' + ), +); \ No newline at end of file diff --git a/trunk/states/MA.php b/trunk/states/MA.php new file mode 100644 index 0000000..da59d05 --- /dev/null +++ b/trunk/states/MA.php @@ -0,0 +1,42 @@ + | https://yourwebsite.com + * @version 1.0.0 + * @license http://www.gnu.org/licenses/gpl-2.0.html + */ + +global $states; + +// Replace 'XX' code for your Country Code. E.g. 'NG' for Nigeria, 'CO' for Colombia, 'VE' for Venezuela, etc. +// Please refer to WooCommerce country codes : https://github.com/woocommerce/woocommerce/blob/master/i18n/countries.php +$states['MA'] = array( + // Some countries like Denmark or Belgium do not use the state field, + // if your country doesn't use it either, leave the array empty. + // E.g. $states['DK'] = array(); + + // Otherwise, if the state field is used in your country: + // Add a State Code to each State Name using a logic sense. + // E.g. 'FA' => 'Florida' + // You can use any standar like ISO, ANSI, etc. There is no an mandatory standar or system and you can use your own. + // Please see the U.S. state abbreviations to see an example: + // https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations + '05' => 'Béni Mellal-Khénifra', + '06' => 'Casablanca-Settat', + '12' => 'Dakhla-Oued Ed-Dahab', + '08' => 'Drâa-Tafilalet', + '03' => 'Fès-Meknès', + '10' => 'Guelmim-Oued Noun', + '02' => "L'Oriental", + '11' => 'Laâyoune-Sakia El Hamra', + '07' => 'Marrakech-Safi', + '04' => 'Rabat-Salé-Kénitra', + '09' => 'Souss-Massa', + '01' => 'Tanger-Tétouan-Al Hoceïma' +); From 45e9b2c2d1de2b6b194a032346cab22509203b5d Mon Sep 17 00:00:00 2001 From: El Mehdi Mouhajer Date: Sat, 18 Sep 2021 03:20:49 +0100 Subject: [PATCH 2/3] =?UTF-8?q?Add=20the=20citys=20of=20the=20folowing=20s?= =?UTF-8?q?tates=20:=20Oriental,=20Guelmim-Oued=20Noun,=20F=C3=A8s-Mekn?= =?UTF-8?q?=C3=A8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/places/MA.php | 44 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/templates/places/MA.php b/templates/places/MA.php index fe7cefa..14349a6 100644 --- a/templates/places/MA.php +++ b/templates/places/MA.php @@ -18,8 +18,7 @@ // Please refer to WooCommerce country codes : https://github.com/woocommerce/woocommerce/blob/master/i18n/countries.php $places['MA'] = array( // Replace 'AA' code with the code of the State you want to mapping this places - '06' => array( - // Add all the places of this State, one place per line + '06' => array( // Casablanca-Settat 'Casablanca', 'Mohammedia', 'El Jadid', @@ -45,7 +44,7 @@ 'Douar Ouled Ayad', 'Zawyat an Nwaçer' ), - '05' => array( + '05' => array( // Béni Mellal-Khénifra 'Kouribga', 'Béni Mellal', 'Khénifra', @@ -65,7 +64,7 @@ 'Ouaoula', 'Ayt Mohamed' ), - '08' => array( + '08' => array( // Drâa-Tafilalet 'Errachidia', 'Warzat', 'Midalt', @@ -74,4 +73,41 @@ 'Arfoud', 'Skoura' ), + '03' => array( // Fès-Meknès + 'Fès', + 'Meknès', + 'Taza', + 'Sefrou', + 'Azrou', + 'Taounate', + 'El Hajeb', + 'Fritissa', + 'Aïn Taoujdat', + 'Tahla', + 'Sabaa Aiyoun', + 'Bourdoud', + 'Missour', + 'Ain Aicha', + 'Oulad Tayeb', + 'Douar ’Ayn Dfali', + 'Bni Frassen' + ), + '10' => array( // Guelmim-Oued Noun + 'Guelmim', + 'Tan-Tan' + ), + '02' => array( // Oriental + 'Oujda-Angad', + 'Taourirt', + 'Nador', + 'Berkane', + 'Guercif', + 'Beni Enzar', + 'Al Aaroui', + 'Jerada', + 'El Aïoun', + 'Zaïo', + 'Zeghanghane', + 'Bou Arfa' + ), ); \ No newline at end of file From 1aa1ca5a6a776f198a34cbebb8449e1426080e95 Mon Sep 17 00:00:00 2001 From: El Mehdi Mouhajer Date: Sat, 18 Sep 2021 04:15:28 +0100 Subject: [PATCH 3/3] =?UTF-8?q?add=20citys=20of=20the=20folowing=20states?= =?UTF-8?q?=20:=20Marrakech-Safi,=20Rabat-Sal=C3=A9-K=C3=A9nitra,=20Souss-?= =?UTF-8?q?Massa,=20Tanger-T=C3=A9touan-Al=20Hoce=C3=AFma,=20Dakhla-Oued?= =?UTF-8?q?=20Ed-Dahab,=20La=C3=A2youne-Sakia=20El=20Hamra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {templates => trunk}/places/MA.php | 100 ++++++++++++++++++++++++++++- trunk/states/MA.php | 4 +- 2 files changed, 100 insertions(+), 4 deletions(-) rename {templates => trunk}/places/MA.php (56%) diff --git a/templates/places/MA.php b/trunk/places/MA.php similarity index 56% rename from templates/places/MA.php rename to trunk/places/MA.php index 14349a6..ede3012 100644 --- a/templates/places/MA.php +++ b/trunk/places/MA.php @@ -37,7 +37,7 @@ 'Bou Ahmed', 'Tit Mellil', 'Douar Oulad Hssine', - 'Sidi Smai’il', + 'Sidi Smaïl', 'Oulad Hammou', 'Oulad Said', 'Douar Olad. Salem', @@ -48,7 +48,7 @@ 'Kouribga', 'Béni Mellal', 'Khénifra', - 'Al Fqih Ben Çalah', + 'Al Fqih Ben Salah', 'Oued Zem', 'Qasbat Tadla', 'Boujad', @@ -110,4 +110,100 @@ 'Zeghanghane', 'Bou Arfa' ), + '07' => array( // Marrakech-Safi + 'El Kelaa des Srarhna', + 'Marrakech', + 'Safi', + 'Ben Guerir', + 'Essaouira', + 'Youssoufia', + 'Sa’ada', + 'Ait Ourir', + 'Loudaya', + 'Tameslouht', + 'Chichaoua', + 'Aït Faska', + 'Lamzoudia', + 'El Ghiate', + 'Echemmaia Est', + 'Setti Fatma', + 'Oulad Hassoune' + ), + '04' => array( // Rabat-Salé-Kénitra + 'Sale', + 'Rabat', + 'Kenitra', + 'Temara', + 'Al Khmissat', + 'Sidi Slimane', + 'Tiflet', + 'Sidi Kacem', + 'Skhirate', + 'Sidi Yahya Zaer', + 'Ain El Aouda', + 'Sidi Mohamed Lahmar', + 'Sidi Yahia El Gharb', + 'Arbaoua', + 'Bahharet Oulad Ayyad', + 'Mechraa Bel Ksiri', + 'Mograne', + 'Lalla Mimouna', + 'Souk et Tnine Jorf el Mellah', + 'Mehdya', + 'Dar Bel Hamri', + 'Ksebia', + 'Moulay Bousselham', + 'Bouknadel', + 'Safsaf', + 'Khenichet-sur Ouerrha' + ), + '' => array( // Souss-Massa + 'Agadir', + 'Ait Melloul', + 'Inezgane', + 'Oulad Teïma', + 'Wislane', + 'Lqoliaa', + 'Taroudannt', + 'Ait Ali', + 'Tiznit', + 'Temsia', + 'Sidi Bibi', + 'Biougra', + 'Aourir', + 'Bellaa', + 'Oulad Barhil', + 'Zawit Al Bour' + ), + '01' => array( // Tanger-Tétouan-Al Hoceïma + 'Tangier', + 'Tétouan', + 'Ksar El Kebir', + 'Larache', + 'Fnidq', + 'Martil', + 'Ouezzane', + 'Al Hoceïma', + 'M’diq', + 'Chefchaouene', + 'Zoumi', + 'Laouamra', + 'Mnasra', + 'Imzouren', + 'Asilah', + 'Taza', + 'Tamorot', + 'Boureït', + 'Gueznaia' + ), + '12'=> array( // Dakhla-Oued Ed-Dahab + 'Ad Dakhla' + ), + '11'=> array( // Laâyoune-Sakia El Hamra + 'Semara', + 'Laâyoune', + 'Tifariti', + 'Boujdour', + 'Aousserd' + ) ); \ No newline at end of file diff --git a/trunk/states/MA.php b/trunk/states/MA.php index da59d05..7beb005 100644 --- a/trunk/states/MA.php +++ b/trunk/states/MA.php @@ -29,12 +29,12 @@ // https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations '05' => 'Béni Mellal-Khénifra', '06' => 'Casablanca-Settat', - '12' => 'Dakhla-Oued Ed-Dahab', + '12' => 'Dakhla-Oued Ed-Dahab', //TO BE ADDED '08' => 'Drâa-Tafilalet', '03' => 'Fès-Meknès', '10' => 'Guelmim-Oued Noun', '02' => "L'Oriental", - '11' => 'Laâyoune-Sakia El Hamra', + '11' => 'Laâyoune-Sakia El Hamra', //TO BE ADDED '07' => 'Marrakech-Safi', '04' => 'Rabat-Salé-Kénitra', '09' => 'Souss-Massa',