Ajout des modules ColissimoWs et ColissimoLabel.php

Ne pas oublier de vérifier si les tables nécessaires sont bien créées en BDD.
This commit is contained in:
2020-05-07 11:45:31 +02:00
parent 28b21af6c8
commit 649c92e52f
114 changed files with 21550 additions and 8312 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace ColissimoLabel\Hook\Back;
use Thelia\Core\Event\Hook\HookRenderEvent;
use Thelia\Core\Hook\BaseHook;
class MenuHook extends BaseHook
{
public function onMainInTopMenuItems(HookRenderEvent $event)
{
$event->add(
$this->render('colissimo-label/hook/main.in.top.menu.items.html', [])
);
}
}

View File

@@ -0,0 +1,26 @@
<?php
namespace ColissimoLabel\Hook\Back;
use ColissimoLabel\ColissimoLabel;
use Thelia\Core\Event\Hook\HookRenderEvent;
use Thelia\Core\Hook\BaseHook;
/**
* @author Gilles Bourgeat >gilles.bourgeat@gmail.com>
*/
class OrderEditHook extends BaseHook
{
public function onOrderEditJs(HookRenderEvent $event)
{
$event->add($this->render(
'colissimo-label/hook/order-edit-js.html',
array_merge(
$event->getArguments(),
[
'preFillWeightInput' => ColissimoLabel::getConfigValue(ColissimoLabel::CONFIG_KEY_PRE_FILL_INPUT_WEIGHT)
]
)
));
}
}