Module orderStatusNotify : on MAJ le ReadMe ainsi que le fichier thelia.sql

This commit is contained in:
2020-03-02 11:25:42 +01:00
parent 7f179bbe53
commit 43363aeaa5
3 changed files with 24 additions and 37 deletions

View File

@@ -26,3 +26,15 @@ CREATE TABLE `order_status_notification`
# This restores the fkey checks, after having unset them earlier
SET FOREIGN_KEY_CHECKS = 1;
-- ---------------------------------------------------------------------
-- Affectation du modèle d'email
-- ---------------------------------------------------------------------
INSERT INTO c0capbretagnev2.message (name,secured,text_layout_file_name,text_template_file_name,html_layout_file_name,html_template_file_name,created_at,updated_at,version,version_created_at,version_created_by) VALUES
('order_status_changed',NULL,NULL,NULL,NULL,'order_status_changed.html','2020-02-12 19:18:35.0','2020-03-01 09:56:48.0',3,'2020-03-01 09:56:48.0',NULL);
INSERT INTO c0capbretagnev2.message_i18n (id,locale,title,subject,text_message,html_message)
(SELECT max(id), 'fr_FR','Informer le client du changement de statut de sa commande','Votre commande {$order_ref} chez {config key="store_name"}',NULL,'Bonjour,
Votre commande référence {$order_ref} vient de passer à l''état {$new_status}.'
from c0capbretagnev2.message);

View File

@@ -1,55 +1,30 @@
# Order Status Notify
Add a short description here. You can also add a screenshot if needed.
Envoi d'email lors du changement de statut d'une commande.
## Installation
### Manually
* Copy the module into ```<thelia_root>/local/modules/``` directory and be sure that the name of the module is OrderStatusNotify.
* Activate it in your thelia administration panel
* Copier le module dans le dossier ```<thelia_root>/local/modules/``` et vérifiez que le nom du module est bien OrderStatusNotify.
* Activer le module depuis l'écran d'administration Modules.
### Composer
Add it in your main thelia composer.json file
Ajoutez ceci dans votre fichier composer.json principal.
```
composer require your-vendor/order-status-notify-module:~1.0
composer require thelia/order-status-notify-module:~1.0
```
## Usage
Explain here how to use your module, how to configure it, etc.
En back-office, l'administrateur sélectionne, parmi les statuts de commande définis sur votre site, lesquels doivent faire l'objet d'une notification au client.
Dès qu'une commande passe à un état présent dans cette liste, alors un email est immédiatement envoyé au client.
Le template de cet email s'intitule "order_status_changed".
## 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.
Pour la partie back-office, un nouvel écran apparaitra dans le menu "Outils" des écrans d'administration.
Il vous sera ainsi possible de choisir les statuts de commande à surveiller.

View File

@@ -1,5 +1,5 @@
{
"name": "your-vendor/order-status-notify-module",
"name": "thelia/order-status-notify-module",
"license": "LGPL-3.0+",
"type": "thelia-module",
"require": {