Ajout et config du module Chronopost
This commit is contained in:
16
local/modules/ChronopostHomeDelivery/Hook/FrontHook.php
Normal file
16
local/modules/ChronopostHomeDelivery/Hook/FrontHook.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace ChronopostHomeDelivery\Hook;
|
||||
|
||||
|
||||
use Thelia\Core\Event\Hook\HookRenderEvent;
|
||||
use Thelia\Core\Hook\BaseHook;
|
||||
|
||||
class FrontHook extends BaseHook
|
||||
{
|
||||
public function onOrderDeliveryExtra(HookRenderEvent $event)
|
||||
{
|
||||
$content = $this->render("ChronopostHomeDelivery.html", $event->getArguments());
|
||||
$event->add($content);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user