Quelques corrections + init du module ClickAndCollect
This commit is contained in:
32
local/modules/ClickAndCollect/Config/config.xml
Normal file
32
local/modules/ClickAndCollect/Config/config.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<config xmlns="http://thelia.net/schema/dic/config"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">
|
||||
|
||||
<hooks>
|
||||
<!-- Global hook class -->
|
||||
<hook id="cnc.css.hook" class="ClickAndCollect\Hook\CssHook">
|
||||
<tag name="hook.event_listener" event="main.head-css" type="back" method="onAddCss"/>
|
||||
<tag name="hook.event_listener" event="main.stylesheet" type="front" method="onAddCss"/>
|
||||
</hook>
|
||||
|
||||
<hook id="cnc.admin.hook" class="ClickAndCollect\Hook\AdminHook">
|
||||
<tag name="hook.event_listener" event="home.block" type="back" method="displayScheduledWithdrawals" />
|
||||
<tag name="hook.event_listener" event="main.in-top-menu-items" type="back" method="onMainTopMenuTools" />
|
||||
<tag name="hook.event_listener" event="order-edit.bill-delivery-address" type="back" method="displayDeliveryDate" />
|
||||
<argument type="service" id="thelia.securityContext"/>
|
||||
</hook>
|
||||
|
||||
<hook id="cnc.front.hook" class="ClickAndCollect\Hook\FrontHook">
|
||||
<tag name="hook.event_listener" event="order-delivery.extra" type="front" method="onOrderDeliveryExtra" />
|
||||
<tag name="hook.event_listener" event="order-invoice.delivery-address" type="front" method="displayWithdrawalDate" />
|
||||
</hook>
|
||||
|
||||
<hook id="cnc.email.hookmanager" class="ClickAndCollect\Hook\EmailHook">
|
||||
<tag name="hook.event_listener" event="email-html.order-confirmation.delivery-address" type="email" method="displayDeliveryDateWithinEmail" />
|
||||
<tag name="hook.event_listener" event="email-html.order-notification.before-products" type="email" method="displayCompleteInformationWithinEmail" />
|
||||
</hook>
|
||||
</hooks>
|
||||
|
||||
</config>
|
||||
28
local/modules/ClickAndCollect/Config/module.xml
Normal file
28
local/modules/ClickAndCollect/Config/module.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module xmlns="http://thelia.net/schema/dic/module"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/module http://thelia.net/schema/dic/module/module-2_2.xsd">
|
||||
<fullnamespace>ClickAndCollect\ClickAndCollect</fullnamespace>
|
||||
<descriptive locale="en_US">
|
||||
<title>Click and Collect</title>
|
||||
</descriptive>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Click and Collect</title>
|
||||
</descriptive>
|
||||
<languages>
|
||||
<language>en_US</language>
|
||||
<language>fr_FR</language>
|
||||
</languages>
|
||||
<version>1.0.0</version>
|
||||
<authors>
|
||||
<author>
|
||||
<name>Laurent LE CORRE</name>
|
||||
<email>laurent@thecoredev.fr</email>
|
||||
</author>
|
||||
</authors>
|
||||
<type>delivery</type>
|
||||
<thelia>2.3.x</thelia>
|
||||
<stability>beta</stability>
|
||||
<mandatory>0</mandatory>
|
||||
<hidden>0</hidden>
|
||||
</module>
|
||||
39
local/modules/ClickAndCollect/Config/routing.xml
Normal file
39
local/modules/ClickAndCollect/Config/routing.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<routes xmlns="http://symfony.com/schema/routing"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||
|
||||
<route id="cnc.places.list" path="/admin/module/ClickAndCollect" methods="get">
|
||||
<default key="_controller">ClickAndCollect\Controller\backOffice\ListController::viewAction</default>
|
||||
</route>
|
||||
<!-- <route id="cnc.toggle.active" path="/admin/module/ClickAndCollect/toggle-online/{id}" methods="post">-->
|
||||
<!-- <default key="_controller">ClickAndCollect\Controller\backOffice\ListController::toggleActive</default>-->
|
||||
<!-- <requirement key="id">\d+</requirement>-->
|
||||
<!-- </route>-->
|
||||
|
||||
<!-- <route id="cnc.place.create" path="/admin/module/ClickAndCollect" methods="post">-->
|
||||
<!-- <default key="_controller">ClickAndCollect\Controller\backOffice\PlaceController::createPlace</default>-->
|
||||
<!-- </route>-->
|
||||
<!-- <route id="cnc.place.view" path="/admin/module/ClickAndCollect/edit" methods="get">-->
|
||||
<!-- <default key="_controller">ClickAndCollect\Controller\backOffice\PlaceController::viewPlace</default>-->
|
||||
<!-- </route>-->
|
||||
<!-- <route id="cnc.place.edit" path="/admin/module/ClickAndCollect/edit" methods="post">-->
|
||||
<!-- <default key="_controller">ClickAndCollect\Controller\backOffice\PlaceController::editPlace</default>-->
|
||||
<!-- </route>-->
|
||||
|
||||
<!-- <route id="cnc.place.delete" path="/admin/module/ClickAndCollect/delete" methods="post">-->
|
||||
<!-- <default key="_controller">ClickAndCollect\Controller\backOffice\PlaceController::deletePlace</default>-->
|
||||
<!-- </route>-->
|
||||
|
||||
<!-- <route id="cnc.schedule.create" path="admin/module/ClickAndCollect/schedule/create" methods="post">-->
|
||||
<!-- <default key="_controller">ClickAndCollect\Controller\backOffice\ScheduleController::createSchedule</default>-->
|
||||
<!-- </route>-->
|
||||
<!-- <route id="cnc.schedule.update" path="admin/module/ClickAndCollect/schedule/update" methods="post">-->
|
||||
<!-- <default key="_controller">ClickAndCollect\Controller\backOffice\ScheduleController::updateSchedule</default>-->
|
||||
<!-- </route>-->
|
||||
<!-- <route id="cnc.schedule.delete" path="/admin/module/ClickAndCollect/schedule/delete" methods="post">-->
|
||||
<!-- <default key="_controller">ClickAndCollect\Controller\backOffice\ScheduleController::deleteSchedule</default>-->
|
||||
<!-- </route>-->
|
||||
|
||||
</routes>
|
||||
Reference in New Issue
Block a user