diff --git a/local/modules/OrderStatusNotification/Config/config.xml b/local/modules/OrderStatusNotification/Config/config.xml deleted file mode 100644 index cff31f16..00000000 --- a/local/modules/OrderStatusNotification/Config/config.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - diff --git a/local/modules/OrderStatusNotification/Config/module.xml b/local/modules/OrderStatusNotification/Config/module.xml deleted file mode 100644 index f384746d..00000000 --- a/local/modules/OrderStatusNotification/Config/module.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - OrderStatusNotification\OrderStatus - - Send email on order status change - - - Envoi d'email lors du changement de statut d'une commande - - - en_US - fr_FR - - 1.0 - - - Laurent LE CORRE - laurent@thecoredev.fr - - - classic - 2.3.0 - other - diff --git a/local/modules/OrderStatusNotification/Config/routing.xml b/local/modules/OrderStatusNotification/Config/routing.xml deleted file mode 100644 index 5d49c6b2..00000000 --- a/local/modules/OrderStatusNotification/Config/routing.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - OrderStatusNotification\Controller\Back\OrderStatusController::showStatus - - - - OrderStatusNotification\Controller\Back\OrderStatusController::setToggleVisibilityAction - - - diff --git a/local/modules/OrderStatusNotification/Controller/Back/OrderStatusController.php b/local/modules/OrderStatusNotification/Controller/Back/OrderStatusController.php deleted file mode 100644 index f23aec98..00000000 --- a/local/modules/OrderStatusNotification/Controller/Back/OrderStatusController.php +++ /dev/null @@ -1,36 +0,0 @@ - - */ -class OrderStatusController extends BaseAdminController -{ - public function showStatus() - { - $order_status = explode(',', ConfigQuery::read('thecoredev_orderstatus_tonotify_id')); - - return $this->render('define-status', ['status' => $order_status]); - } - - - public function setToggleVisibilityAction() - { - /* - try { - $this->recomposerListeCategories($_GET['category_id']); - } catch (\Exception $ex) { - // Any error - return $this->errorPage($ex); - } - - return $this->nullResponse(); - */ - } -} \ No newline at end of file diff --git a/local/modules/OrderStatusNotification/EventListeners/OrderStatusListener.php b/local/modules/OrderStatusNotification/EventListeners/OrderStatusListener.php deleted file mode 100644 index 99331881..00000000 --- a/local/modules/OrderStatusNotification/EventListeners/OrderStatusListener.php +++ /dev/null @@ -1,48 +0,0 @@ -request = $request; - } - - public static function getSubscribedEvents() - { - return [TheliaEvents::ORDER_UPDATE_STATUS => array("updateStatus", 128)]; - } - - public function updateStatus(OrderEvent $event) - { - /* - $order = $event->getOrder(); - - if (OrderStatusListener::getConfigValue('order_status_changed')) { - $this->mailer->sendEmailToCustomer( - OrderStatusListener::CONFIRMATION_MESSAGE_NAME, - $order->getCustomer(), - [ - 'order_id' => $order->getId(), - 'order_ref' => $order->getRef(), - 'new_status' => $order->getOrderStatus() - ] - ); - } - - Tlog::getInstance()->debug("Order status change sent to customer " . $order->getCustomer()->getEmail()); - */ - } -} diff --git a/local/modules/OrderStatusNotification/Hook/BackHook.php b/local/modules/OrderStatusNotification/Hook/BackHook.php deleted file mode 100644 index 2e987f99..00000000 --- a/local/modules/OrderStatusNotification/Hook/BackHook.php +++ /dev/null @@ -1,29 +0,0 @@ -add( - [ - 'id' => 'tools_menu_orderstatusnotification', - 'class' => '', - 'url' => URL::getInstance()->absoluteUrl('/admin/module/orderstatusnotification'), - 'title' => $this->trans('Order status notification', [], OrderStatusNotification::DOMAIN_NAME) - ] - ); - } -} - - diff --git a/local/modules/OrderStatusNotification/I18n/en_US.php b/local/modules/OrderStatusNotification/I18n/en_US.php deleted file mode 100644 index 0b4fa142..00000000 --- a/local/modules/OrderStatusNotification/I18n/en_US.php +++ /dev/null @@ -1,4 +0,0 @@ - 'The displayed english string', -); diff --git a/local/modules/OrderStatusNotification/I18n/fr_FR.php b/local/modules/OrderStatusNotification/I18n/fr_FR.php deleted file mode 100644 index 54cb0b5e..00000000 --- a/local/modules/OrderStatusNotification/I18n/fr_FR.php +++ /dev/null @@ -1,4 +0,0 @@ - 'Prévenir des changements de statut', -]; \ No newline at end of file diff --git a/local/modules/OrderStatusNotification/OrderStatusNotification.php b/local/modules/OrderStatusNotification/OrderStatusNotification.php deleted file mode 100644 index 93bc12df..00000000 --- a/local/modules/OrderStatusNotification/OrderStatusNotification.php +++ /dev/null @@ -1,18 +0,0 @@ -/local/modules/``` directory and be sure that the name of the module is OrderStatus. -* Activate it in your thelia administration panel - -### Composer - -Add it in your main thelia composer.json file - -``` -composer require your-vendor/order-status-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/OrderStatusNotification/templates/backOffice/default/define-status.html b/local/modules/OrderStatusNotification/templates/backOffice/default/define-status.html deleted file mode 100644 index 8662aa0b..00000000 --- a/local/modules/OrderStatusNotification/templates/backOffice/default/define-status.html +++ /dev/null @@ -1,46 +0,0 @@ -{extends file="admin-layout.tpl"} - -{block name="page-title"}{intl d='orderstatusnotification' l='Order status notification'}{/block} - -{block name="main-content"} -
-
- - -
-
-
- {include file="include/status-list.html"} -
-
-
-
-
-{/block} - - -{block name="javascript-initialization"} -{javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'} - -{/javascripts} - - -{/block} \ No newline at end of file diff --git a/local/modules/OrderStatusNotification/templates/backOffice/default/include/status-list.html b/local/modules/OrderStatusNotification/templates/backOffice/default/include/status-list.html deleted file mode 100644 index ba138fa4..00000000 --- a/local/modules/OrderStatusNotification/templates/backOffice/default/include/status-list.html +++ /dev/null @@ -1,35 +0,0 @@ -{$status={config key="thecoredev_orderstatus_tonotify_id"}} -{assign var="status_as_array" value=","|explode:$status} - - -
- - - - - - - - - - - - - {loop type="order_status" name="status-loop" visible="yes" order="alpha"} - - - - - - {/loop} - - - -
- {intl d='orderstatusnotification' l="Status list"} -
{intl d='orderstatusnotification' l="ID"}{intl d='orderstatusnotification' l="Status"}{intl d='orderstatusnotification' l="Send notification"}
{$ID}{$TITLE} -
- -
-
-
\ No newline at end of file