From 948fa1510e9b74fc0af727b219ea2d7843ab6b4c Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Thu, 25 Feb 2021 19:00:59 +0100 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20d'un=20nouveau=20module=20Point?= =?UTF-8?q?Retrait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LivraisonParSecteurs/I18n/fr_FR.php | 2 +- local/modules/PointRetrait/Config/config.xml | 34 ++++++++++++ local/modules/PointRetrait/Config/module.xml | 28 ++++++++++ local/modules/PointRetrait/Config/routing.xml | 31 +++++++++++ local/modules/PointRetrait/Config/schema.xml | 25 +++++++++ local/modules/PointRetrait/I18n/en_US.php | 4 ++ local/modules/PointRetrait/I18n/fr_FR.php | 4 ++ local/modules/PointRetrait/PointRetrait.php | 28 ++++++++++ local/modules/PointRetrait/Readme.md | 55 +++++++++++++++++++ local/modules/PointRetrait/composer.json | 12 ++++ 10 files changed, 222 insertions(+), 1 deletion(-) create mode 100644 local/modules/PointRetrait/Config/config.xml create mode 100644 local/modules/PointRetrait/Config/module.xml create mode 100644 local/modules/PointRetrait/Config/routing.xml create mode 100644 local/modules/PointRetrait/Config/schema.xml create mode 100644 local/modules/PointRetrait/I18n/en_US.php create mode 100644 local/modules/PointRetrait/I18n/fr_FR.php create mode 100644 local/modules/PointRetrait/PointRetrait.php create mode 100644 local/modules/PointRetrait/Readme.md create mode 100644 local/modules/PointRetrait/composer.json diff --git a/local/modules/LivraisonParSecteurs/I18n/fr_FR.php b/local/modules/LivraisonParSecteurs/I18n/fr_FR.php index e032c831..b08c3bd5 100644 --- a/local/modules/LivraisonParSecteurs/I18n/fr_FR.php +++ b/local/modules/LivraisonParSecteurs/I18n/fr_FR.php @@ -41,7 +41,7 @@ return array( 'There is no city delivered in this area' => 'Aucune commune desservie dans ce secteur', 'There is no order to deliver' => 'Aucune commande à livrer à domicile', 'There is no schedule for this area' => 'Aucune livraison actuellement sur ce secteur', - 'Title of config view' => 'Module LivraisonParSecteurs - Confiwguration', + 'Title of config view' => 'Livraison à domicile - Configuration', 'Zipcode' => 'Code postal', 'Monday' => 'Lundi', 'Tuesday' => 'Mardi', diff --git a/local/modules/PointRetrait/Config/config.xml b/local/modules/PointRetrait/Config/config.xml new file mode 100644 index 00000000..68790e42 --- /dev/null +++ b/local/modules/PointRetrait/Config/config.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + diff --git a/local/modules/PointRetrait/Config/module.xml b/local/modules/PointRetrait/Config/module.xml new file mode 100644 index 00000000..b5018a01 --- /dev/null +++ b/local/modules/PointRetrait/Config/module.xml @@ -0,0 +1,28 @@ + + + PointRetrait\PointRetrait + + AuxBieauxLegumes widthdrawal locations + + + Point de retrait AuxBieauxLegumes + + + en_US + fr_FR + + 1.0.0 + + + Laurent LE CORRE + laurent@thecoredev.fr + + + delivery + 2.3.x + beta + 0 + 0 + diff --git a/local/modules/PointRetrait/Config/routing.xml b/local/modules/PointRetrait/Config/routing.xml new file mode 100644 index 00000000..5e018bc2 --- /dev/null +++ b/local/modules/PointRetrait/Config/routing.xml @@ -0,0 +1,31 @@ + + + + + + + diff --git a/local/modules/PointRetrait/Config/schema.xml b/local/modules/PointRetrait/Config/schema.xml new file mode 100644 index 00000000..822ac883 --- /dev/null +++ b/local/modules/PointRetrait/Config/schema.xml @@ -0,0 +1,25 @@ + + + + diff --git a/local/modules/PointRetrait/I18n/en_US.php b/local/modules/PointRetrait/I18n/en_US.php new file mode 100644 index 00000000..0b4fa142 --- /dev/null +++ b/local/modules/PointRetrait/I18n/en_US.php @@ -0,0 +1,4 @@ + 'The displayed english string', +); diff --git a/local/modules/PointRetrait/I18n/fr_FR.php b/local/modules/PointRetrait/I18n/fr_FR.php new file mode 100644 index 00000000..37086245 --- /dev/null +++ b/local/modules/PointRetrait/I18n/fr_FR.php @@ -0,0 +1,4 @@ + 'La traduction française de la chaine', +); diff --git a/local/modules/PointRetrait/PointRetrait.php b/local/modules/PointRetrait/PointRetrait.php new file mode 100644 index 00000000..a9659adc --- /dev/null +++ b/local/modules/PointRetrait/PointRetrait.php @@ -0,0 +1,28 @@ +/local/modules/``` directory and be sure that the name of the module is PointRetrait. +* Activate it in your thelia administration panel + +### Composer + +Add it in your main thelia composer.json file + +``` +composer require your-vendor/point-retrait-module:~1.0 +``` + +## Usage + +Explain here how to use your module, how to configure it, etc. + +## Hook + +If your module use one or more hook, fill this part. Explain which hooks are used. + + +## Loop + +If your module declare one or more loop, describe them here like this : + +[loop name] + +### Input arguments + +|Argument |Description | +|--- |--- | +|**arg1** | describe arg1 with an exemple. | +|**arg2** | describe arg2 with an exemple. | + +### Output arguments + +|Variable |Description | +|--- |--- | +|$VAR1 | describe $VAR1 variable | +|$VAR2 | describe $VAR2 variable | + +### Exemple + +Add a complete exemple of your loop + +## Other ? + +If you have other think to put, feel free to complete your readme as you want. diff --git a/local/modules/PointRetrait/composer.json b/local/modules/PointRetrait/composer.json new file mode 100644 index 00000000..5cc4afa4 --- /dev/null +++ b/local/modules/PointRetrait/composer.json @@ -0,0 +1,12 @@ +{ + "name": "your-vendor/point-retrait-module", + "description": "PointRetrait module for Thelia", + "license": "LGPL-3.0-or-later", + "type": "thelia-module", + "require": { + "thelia/installer": "~1.1" + }, + "extra": { + "installer-name": "PointRetrait" + } +} \ No newline at end of file