-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V1.2.11 dev ma #196
Open
elmehdimouhajer
wants to merge
3
commits into
chitezh:master
Choose a base branch
from
elmehdimouhajer:v1.2.11-dev-MA
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
V1.2.11 dev ma #196
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,209 @@ | ||
<?php | ||
|
||
/** | ||
* $country places/cities/municipalities/districts | ||
* - $count places/cities/municipalities/districts | ||
* | ||
* Source: | ||
* - [Please add the source(s) link(s) to check the list of places] | ||
* | ||
* @author Your Name Here <[email protected]> | 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( // Casablanca-Settat | ||
'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 Smaïl', | ||
'Oulad Hammou', | ||
'Oulad Said', | ||
'Douar Olad. Salem', | ||
'Douar Ouled Ayad', | ||
'Zawyat an Nwaçer' | ||
), | ||
'05' => array( // Béni Mellal-Khénifra | ||
'Kouribga', | ||
'Béni Mellal', | ||
'Khénifra', | ||
'Al Fqih Ben Salah', | ||
'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( // Drâa-Tafilalet | ||
'Errachidia', | ||
'Warzat', | ||
'Midalt', | ||
'Tineghir', | ||
'Zagora', | ||
'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' | ||
), | ||
'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' | ||
) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
/** | ||
* $country states/provinces/regions | ||
* - $count states/provinces/regions | ||
* | ||
* Source: | ||
* - [Please add the source(s) link(s) to check the list of places] | ||
* | ||
* @author Your Name Here <[email protected]> | 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', //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', //TO BE ADDED | ||
'07' => 'Marrakech-Safi', | ||
'04' => 'Rabat-Salé-Kénitra', | ||
'09' => 'Souss-Massa', | ||
'01' => 'Tanger-Tétouan-Al Hoceïma' | ||
); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that you forgot to add the state code here:
09