33 lines
1.9 KiB
XML
33 lines
1.9 KiB
XML
<?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>
|